@social-mail/social-mail-client 1.9.120 → 1.9.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29825,11 +29825,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
29825
29825
  c.render(XNode.create("div", null, XNode.create("div", {
29826
29826
  "style-height": "40vh"
29827
29827
  }, XNode.create(Loader, null))), e, c);
29828
- const es = c.app.resolve(EntityService);
29829
- mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
29830
- cacheSeconds: CacheTTL.seconds.oneMonth,
29831
- cacheVersion: CacheVersions.email
29832
- }).asText();
29828
+ if (mail.status !== "draft") {
29829
+ const es = c.app.resolve(EntityService);
29830
+ mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
29831
+ cacheSeconds: CacheTTL.seconds.oneMonth,
29832
+ cacheVersion: CacheVersions.email
29833
+ }).asText();
29834
+ }
29833
29835
  e.innerHTML = "";
29834
29836
  }
29835
29837
  const msg = document.createElement("div");