From 7cbe98ae79c37eaf7220c3e23b5a25a9a54bfb96 Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Mon, 6 Jan 2020 17:29:34 -0700 Subject: [PATCH] Fix typo from #1792 preventing filtering by tag In #1792 I introduced a typo from `name` to `namer` and this prevented the tag drawer from working properly. That is, when trying to filter by tag it was looking for matches on `tag.data.namer` instead of on `tag.data.name` and unsuprisingly there were no matches. After this patch things are restored to normal working order. --- lib/utils/filter-notes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/filter-notes.ts b/lib/utils/filter-notes.ts index 3780a2836..69a2ea840 100644 --- a/lib/utils/filter-notes.ts +++ b/lib/utils/filter-notes.ts @@ -73,7 +73,7 @@ const makeMatchesTag = (tag: TagEntity, filter = '') => (note: NoteEntity) => { } } - const givenTag = tag ? [get(tag, 'data.namer', '')] : []; + const givenTag = tag ? [get(tag, 'data.name', '')] : []; const noteTags = get(note, 'data.tags', []);