Skip to content

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

fix: restore note colors on trash restore

thecodrr4732ce498438
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.js
index 16d7cd637..ef5759041 100644
--- a/packages/core/collections/notes.js
+++ b/packages/core/collections/notes.js
@@ -74,7 +74,7 @@ export default class Notes extends Collection {
conflicted: !!note.conflicted,
};
- if (!oldNote) {
+ if (!oldNote || oldNote.deleted) {
for (let color of note.colors) {
await this._db.colors.add(color, id);
}