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: allow opening empty trashed notes without contentId
kashaf-ansari-dev966d57dfa2a1
diff --git a/apps/mobile/app/components/list-items/note/wrapper.tsx b/apps/mobile/app/components/list-items/note/wrapper.tsxindex fc649365e..3ea524653 100644--- a/apps/mobile/app/components/list-items/note/wrapper.tsx+++ b/apps/mobile/app/components/list-items/note/wrapper.tsx@@ -58,9 +58,9 @@ export const openNote = async (}if (isTrash) {- if (!note.contentId) return;-- const content = await db.content.get(note.contentId as string);+ const content = note.contentId+ ? await db.content.get(note.contentId)+ : undefined;presentSheet({component: <NotePreview note={item} content={content} />});diff --git a/apps/mobile/app/components/note-history/preview.tsx b/apps/mobile/app/components/note-history/preview.tsxindex a92afc887..b2a7f4510 100644--- a/apps/mobile/app/components/note-history/preview.tsx+++ b/apps/mobile/app/components/note-history/preview.tsx@@ -198,7 +198,7 @@ export default function NotePreview({<Viewstyle={{width: "100%",- height: 100,+ flex: 1,justifyContent: "center",alignItems: "center"}}