Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix crash when opening ActionSheet

ammarahm-ed521d5bc45e46
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js
index d92b6b55d..6d99962c5 100644
--- a/apps/mobile/src/components/NoteItem/index.js
+++ b/apps/mobile/src/components/NoteItem/index.js
@@ -17,9 +17,9 @@ const NoteItem = ({item, customStyle, isTrash, fontScale}) => {
const {colors} = state;
const showActionSheet = () => {
- let note = db.notes.note(item.id).data;
+ let note = db.notes.note(item?.id)?.data;
ActionSheetEvent(
- note,
+ note || item,
isTrash ? false : true,
isTrash ? false : true,
isTrash