Skip to content

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

core: fix conflicts being shown on non-conflicted notes

Abdullah Attabea0f1ab0eb7
diff --git a/packages/core/src/api/sync/index.ts b/packages/core/src/api/sync/index.ts
index 330afea4b..de1509922 100644
--- a/packages/core/src/api/sync/index.ts
+++ b/packages/core/src/api/sync/index.ts
@@ -334,7 +334,7 @@ class Sync {
);
for (const item of items)
- if (!item?.deleted && item?.type === "tiptap" && !item.conflicted)
+ if (!item?.deleted && item?.type === "tiptap" && !!item.conflicted)
this.conflictedNoteIds.push(item.noteId);
}