Skip to content

Commit 56a66de

Browse files
authored
Merge pull request #47 from standardnotes/chore/advanced-checklist-logic-cleanup
chore: clean up advanced checklist canEdit logic
1 parent f134b09 commit 56a66de

File tree

1 file changed

+2
-1
lines changed
  • packages/com.sncommunity.advanced-checklist/src

1 file changed

+2
-1
lines changed

packages/com.sncommunity.advanced-checklist/src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ const TaskEditor: React.FC = () => {
6565
onNoteValueChange: async (currentNote: any) => {
6666
note.current = currentNote
6767

68-
const editable = !currentNote.content.appData['org.standardnotes.sn'].locked ?? true
68+
const locked = currentNote.content.appData['org.standardnotes.sn'].locked ?? false
69+
const editable = !locked
6970
const spellCheckEnabled = currentNote.content.spellcheck
7071

7172
dispatch(setCanEdit(editable))

0 commit comments

Comments
 (0)