Skip to content

Commit

Permalink
Fix typo from #1792 preventing filtering by tag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dmsnell committed Jan 7, 2020
1 parent a27d526 commit 7cbe98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/filter-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', []);

Expand Down

0 comments on commit 7cbe98a

Please sign in to comment.