Skip to content

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

fix: notebooks is not defined

thecodrr405db08d3b49
diff --git a/apps/web/src/common/list-profiles.js b/apps/web/src/common/list-profiles.js
index 226084d11..6d764b1c3 100644
--- a/apps/web/src/common/list-profiles.js
+++ b/apps/web/src/common/list-profiles.js
@@ -22,7 +22,7 @@ const NotesProfile = createProfile(
// TODO doing all this here could be a potential performance issue.
let tags = item.tags;
- let notebook = item.notebooks[0];
+ let notebook = item.notebooks && item.notebooks[0];
if (tags) tags = tags.map((t) => db.tags.tag(t)).slice(0, 2);
if (notebook) {
notebook = db.notebooks.notebook(notebook.id)?.data;