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 tag suggestions not showing up
ammarahm-edb999185056d9
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.jsindex feb99ce08..aa5395e1a 100644--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js@@ -76,9 +76,9 @@ export const ActionSheetTagsSection = ({item, close}) => {useEffect(() => {if (prevQuery) {- getSuggestions(prevQuery);+ getSuggestions(prevQuery,note);} else {- getSuggestions();+ getSuggestions(null,note);}return () => {@@ -123,12 +123,14 @@ export const ActionSheetTagsSection = ({item, close}) => {});const getSuggestions = (query, note) => {+if (!note || !note?.id) return;let _tags = db.tags.all;+ console.log(_tags);+prevQuery = query;let _suggestions;-if (query) {_suggestions = _tags.filter((t) =>@@ -286,6 +288,7 @@ const TagItem = ({tag, note, localRefresh}) => {return (<TouchableOpacityonPress={onPress}+ activeOpacity={0.8}style={{paddingHorizontal: 8,backgroundColor: colors.shade,