forked from Shinonome/dots-hyprland
Handle empty search in fuzzyQuery function
Add check for empty search string in fuzzyQuery function.
This commit is contained in:
@@ -21,6 +21,9 @@ Singleton {
|
||||
entry: a
|
||||
}))
|
||||
function fuzzyQuery(search: string): var {
|
||||
if (search.trim() === "") {
|
||||
return entries;
|
||||
}
|
||||
if (root.sloppySearch) {
|
||||
const results = entries.slice(0, 100).map(str => ({
|
||||
entry: str,
|
||||
|
||||
Reference in New Issue
Block a user