Skip to content

Commit

Permalink
Update search.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 26, 2023
1 parent 63f1030 commit 7036cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
const searchResult = fuse.search(searchTerm)

iconListContainer.innerHTML = ''
if (searchTerm.length) {
if (searchTerm.length > 0) {
const resultElements = searchResult.map(result => iconElementList[result.refIndex])
iconListContainer.append(...resultElements)
} else {
Expand Down

0 comments on commit 7036cde

Please sign in to comment.