Skip to content
Snippets Groups Projects
Commit 142911ba authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Do not log empty search values

parent 0c083483
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,9 @@ class HistoryView {
}
add(item) {
if (item.query == "")
return;
const idx = this.elements.map((item) => item.query).indexOf(item.query);
if (idx !== -1) {
this.list.removeChild(this.elements[idx].elem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment