Skip to content

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

fix: do not add empty tags to note

thecodrre0f8625224fe
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index d71fa91fc..6dd824781 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -102,6 +102,7 @@ export default class Notes extends Collection {
if (note.color) await this._db.colors.add(note.color, id);
for (let tag of note.tags) {
+ if (!tag || !tag.trim()) continue;
await this._db.tags.add(tag, id);
}
}