A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix itemExists error
Ammar Ahmedb5be5e0b59e2
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.tsindex 35f3f6483..a3ab53d16 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts@@ -660,9 +660,9 @@ export const useEditor = (lock.current = true;// Handle this case where note was locked on another device and synced.- const locked = await db.vaults.itemExists(- currentNotes.current[noteId] as ItemReference- );+ const locked = note+ ? await db.vaults.itemExists(note as ItemReference)+ : false;if (note) {if (!locked && tab?.noteLocked) {