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
fix crash in noteitem due to notebook undefined
ammarahm-ed3037d719aca6
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.jsindex 76f102eb5..e95a018ed 100644--- a/apps/mobile/src/components/NoteItem/index.js+++ b/apps/mobile/src/components/NoteItem/index.js@@ -66,6 +66,7 @@ export default class NoteItem extends React.Component {};render() {+let {colors, item, customStyle, isTrash} = this.props;return (<View@@ -113,7 +114,7 @@ export default class NoteItem extends React.Component {<Headingsize={SIZE.xs}color={item.color ? COLORS_NOTE[item.color] : colors.accent}>- {db.notebooks.notebook(item.notebooks[0].id).title + ' '}{' '}+ {db.notebooks.notebook(item.notebooks[0]?.id)?.title + ' '}{' '}{item.notebooks.length > 1? '& ' + (item.notebooks.length - 1) + ' others': ''}