Skip to content

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

fix: only repair note refs if broken

thecodrr39e37537d2d8
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 19d2f1581..2b25c68b8 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -259,7 +259,7 @@ export default class Notes extends Collection {
deleteItem(notebook.topics, topic);
continue;
}
- await _topic.add(note.id);
+ if (!_topic.has(note.id)) await _topic.add(note.id);
}
}
}