mobile: search tags with db.lookup

This commit is contained in:
ammarahm-ed
2023-07-11 19:01:51 +05:00
committed by Ammar Ahmed
parent 05fa30a039
commit df5cbacc8a

View File

@@ -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()];