diff --git a/src/EmailContent.tsx b/src/EmailContent.tsx
index 6506fdf..9dc3f3b 100644
--- a/src/EmailContent.tsx
+++ b/src/EmailContent.tsx
@@ -1,5 +1,6 @@
-import React from "react";
import Placeholder from "react-bootstrap/Placeholder";
+import React from "react";
+import Stack from "react-bootstrap/Stack";
import Client from "./client/Client";
import { IAccount, IEmail } from "./client/types";
@@ -34,10 +35,44 @@ class EmailContent extends React.Component<
}
render() {
- if (this.props.email == null) {
+ const email = this.props.email;
+ if (email == null || email.bodyValues == null) {
return
{this.props.email.preview}
; + returnNothing to display :/
; } } } diff --git a/src/client/Client.tsx b/src/client/Client.tsx index 368ba74..cc22889 100644 --- a/src/client/Client.tsx +++ b/src/client/Client.tsx @@ -112,6 +112,7 @@ export default class Client { .email_get({ accountId: accountId, ids: [emailId], + fetchAllBodyValues: true, }) .then((response) => { console.log(msg, "response", response);