mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
mobile: search tags with db.lookup
This commit is contained in:
@@ -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()];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user