Skip to content

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

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.js
index 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 (
<TouchableOpacity
onPress={onPress}
+ activeOpacity={0.8}
style={{
paddingHorizontal: 8,
backgroundColor: colors.shade,