Skip to content

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

fix: crash sometimes when note.tags === null

thecodrr466bc0b94bda
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index e9421e3ce..91be541f4 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -75,7 +75,7 @@ function Note(props) {
icon={Icon.Notebook}
/>
)}
- {note.tags.slice(0, 2).map((tag) => {
+ {note.tags?.slice(0, 2).map((tag) => {
const tagItem = db.tags.tag(tag);
if (!tagItem) return null;
return (