Skip to content

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

fix: do not request image download for new notes

thecodrr94459eae7107
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 10f8bc8af..be8e6af55 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -72,7 +72,7 @@ function Editor({ noteId, nonce }) {
editor.undoManager.reset();
editor.setDirty(false);
- await db.attachments.download(id);
+ if (id) await db.attachments.downloadImages(id);
}
if (!isMobile) editor.focus();