Skip to content

Commit

Permalink
Only do search request if trimmed value isn't empty
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbissemattsson committed Dec 12, 2024
1 parent 21f493a commit fba4131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/supersearch/src/lib/components/SuperSearch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
});
$effect(() => {
if (value) {
if (value && value.trim()) {
search.debouncedFetchData(value, cursor);
}
});
Expand Down

0 comments on commit fba4131

Please sign in to comment.