@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.
@@ -24457,11 +24457,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24457
24457
  c.render(XNode.create("div", null, XNode.create("div", {
24458
24458
  "style-height": "40vh"
24459
24459
  }, XNode.create(Loader, null))), e, c);
24460
- const es = c.app.resolve(EntityService);
24461
- mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
24462
- cacheSeconds: CacheTTL.seconds.oneMonth,
24463
- cacheVersion: CacheVersions.email
24464
- }).asText();
24460
+ if (mail.status !== "draft") {
24461
+ const es = c.app.resolve(EntityService);
24462
+ mail.sanitizedHtml = html = yield es.run(Email, "getBody", email, {
24463
+ cacheSeconds: CacheTTL.seconds.oneMonth,
24464
+ cacheVersion: CacheVersions.email
24465
+ }).asText();
24466
+ }
24465
24467
  e.innerHTML = "";
24466
24468
  }
24467
24469
  const msg = document.createElement("div");