Skip to content

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

mobile: search tags with db.lookup

ammarahm-eddf5cbacc8a11
diff --git a/apps/mobile/app/components/sheets/manage-tags/index.js b/apps/mobile/app/components/sheets/manage-tags/index.js
index 4cb5f0e47..ea76638d8 100644
--- a/apps/mobile/app/components/sheets/manage-tags/index.js
+++ b/apps/mobile/app/components/sheets/manage-tags/index.js
@@ -50,7 +50,7 @@ const ManageTagsSheet = (props) => {
_tags = _tags.filter((t) => t.type === "tag");
_tags = _tags.sort((a, b) => a.title.localeCompare(b.title));
if (query) {
- _tags = _tags.filter((t) => t.title.startsWith(query));
+ _tags = db.lookup.tags(_tags, query);
}
const tagsMerged = [...notes.map((note) => note.tags || []).flat()];