Skip to content

Commit

Permalink
fix: filter by content
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantin <91319844+fersaru@users.noreply.github.com>
  • Loading branch information
falk-werner and fersaru authored Jan 21, 2024
1 parent ff41b80 commit d30aa06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/note.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Note {

applyFilter(filter) {
const name = this.#name.toLowerCase();
const content = this.#name.toLowerCase();
const content = this.#content.toLowerCase();
if ((name.includes(filter)) || (content.includes(filter))) {
this.#list_item.classList.remove('hidden');
}
Expand Down

0 comments on commit d30aa06

Please sign in to comment.