web: fix conflict on locked note auto resolving

This commit is contained in:
Abdullah Atta
2024-05-21 12:19:17 +05:00
committed by 01zulfi
parent d97314c484
commit 1544b656e0

View File

@@ -750,12 +750,7 @@ class EditorStore extends BaseStore<EditorStore> {
? await db.content.get(note.contentId)
: undefined;
if (
!content ||
content.locked ||
!content.conflicted ||
note.type === "trash"
) {
if (!content || !content.conflicted || note.type === "trash") {
note.conflicted = false;
await db.notes.add({ id: note.id, conflicted: false });
if (content?.locked) {