Skip to content

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

fix: list images in attachments in properties (fixes streetwriters/notesnook#163)

thecodrr12c55ff2aefb
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index 0d9e780d2..019bf6a00 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -108,7 +108,7 @@ class EditorStore extends BaseStore {
...note,
content: content || defaultSession.content,
state: SESSION_STATES.new,
- attachments: db.attachments.ofNote(note.id, "files") || [],
+ attachments: db.attachments.ofNote(note.id, "all") || [],
};
});
appStore.setIsEditorOpen(true);
@@ -153,7 +153,7 @@ class EditorStore extends BaseStore {
state.session.isSaving = false;
state.session.notebooks = note.notebooks;
state.session.attachments =
- db.attachments.ofNote(note.id, "files") || [];
+ db.attachments.ofNote(note.id, "all") || [];
});
if (