Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: if hash is null, skip attachment

thecodrr10d4837de82c
diff --git a/packages/core/content-types/tiny.js b/packages/core/content-types/tiny.js
index 1f9e4d9d0..caccbfe5f 100644
--- a/packages/core/content-types/tiny.js
+++ b/packages/core/content-types/tiny.js
@@ -66,6 +66,7 @@ class Tiny {
switch (attachment.tagName) {
case "IMG": {
const hash = getDatasetAttribute(attachment, "hash");
+ if (!hash) continue;
const src = await getData(hash, {
total: attachmentElements.length,