Skip to content

Commit

Permalink
Fix: handle undefined value in gotoSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Sep 1, 2024
1 parent 6c47b53 commit 4d3290b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/js/browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function gotoSearch(tag, value) {
if (typeof(value) === 'string') {
filters.push(createSearchExpressionComponent(tag, '==', value));
}
else {
else if (value !== undefined) {
for (const v of value) {
filters.push(createSearchExpressionComponent(tag, '==', v));
}
Expand Down

0 comments on commit 4d3290b

Please sign in to comment.