alessandro trinca tornidor
commited on
Commit
·
a90c443
1
Parent(s):
3239521
fix: use strict comparison with undefined
Browse files- static/index.js +1 -1
static/index.js
CHANGED
|
@@ -586,7 +586,7 @@ async function updateWordsFrequencyTables() {
|
|
| 586 |
|
| 587 |
let inputFilter = document.getElementById("filter-words-frequency")
|
| 588 |
let inputFilterValue = inputFilter.value
|
| 589 |
-
if (inputFilterValue
|
| 590 |
reduced = arrayFilter(reduced, "word_prefix", inputFilterValue)
|
| 591 |
}
|
| 592 |
|
|
|
|
| 586 |
|
| 587 |
let inputFilter = document.getElementById("filter-words-frequency")
|
| 588 |
let inputFilterValue = inputFilter.value
|
| 589 |
+
if (inputFilterValue !== undefined && inputFilter.value !== "") {
|
| 590 |
reduced = arrayFilter(reduced, "word_prefix", inputFilterValue)
|
| 591 |
}
|
| 592 |
|