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 crash where notebook is not present
ammarahm-ed8ab26eb852f0
diff --git a/apps/mobile/app/screens/notes/index.tsx b/apps/mobile/app/screens/notes/index.tsxindex 2cbd12a0b..fd85f15ba 100644--- a/apps/mobile/app/screens/notes/index.tsx+++ b/apps/mobile/app/screens/notes/index.tsx@@ -245,19 +245,23 @@ const NotesPage = ({>Notebooks</Paragraph>- <IconButton- name="chevron-right"- size={14}- customStyle={{ width: 25, height: 25 }}- />- <Paragraph- onPress={() => {- Notebook.navigate(notebook, true);- }}- size={SIZE.xs}- >- {notebook.title}- </Paragraph>+ {notebook ? (+ <>+ <IconButton+ name="chevron-right"+ size={14}+ customStyle={{ width: 25, height: 25 }}+ />+ <Paragraph+ onPress={() => {+ Notebook.navigate(notebook, true);+ }}+ size={SIZE.xs}+ >+ {notebook.title}+ </Paragraph>+ </>+ ) : null}</View>) : null}<List