Skip to content

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

fix crash when actionsheet opened on empty note

ammarahm-ed156ac794b327
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js
index cdb1206b4..2a2ba7e52 100644
--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js
+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js
@@ -129,6 +129,8 @@ export const ActionSheetTagsSection = ({item, close}) => {
});
const getSuggestions = (query) => {
+ if (!note || !note?.id) return;
+
prevQuery = query;
let _suggestions;
if (query) {