mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
web: fix conflict on locked note auto resolving
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user