@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.
@@ -29124,11 +29124,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
29124
29124
  c.render(XNode.create("div", null, XNode.create("div", {
29125
29125
  "style-height": "40vh"
29126
29126
  }, XNode.create(Loader, null))), e, c);
29127
- const es = c.app.resolve(EntityService);
29128
- mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
29129
- cacheSeconds: CacheTTL.seconds.oneMonth,
29130
- cacheVersion: CacheVersions.email
29131
- }).asText();
29127
+ if (mail.status !== "draft") {
29128
+ const es = c.app.resolve(EntityService);
29129
+ mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
29130
+ cacheSeconds: CacheTTL.seconds.oneMonth,
29131
+ cacheVersion: CacheVersions.email
29132
+ }).asText();
29133
+ }
29132
29134
  e.innerHTML = "";
29133
29135
  }
29134
29136
  const msg = document.createElement("div");