Compare commits

...

1 Commits

Author SHA1 Message Date
ammarahm-ed
61fec0e108 mobile: search tags with db.lookup 2023-07-11 19:01:51 +05:00

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