Skip to content

Commit

Permalink
Do not allow empty string filters (#7010)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristina-fefelova authored Oct 22, 2024
1 parent c7fb3bd commit 6d3fd41
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
}
function save () {
filter.value = search ? [search] : []
if (search == null || search === '') {
return
}
filter.value = [search]
onChange(filter)
dispatch('close')
Expand All @@ -61,5 +64,5 @@
on:change
/>
</div>
<Button shape="filter" label={view.string.Apply} on:click={save} />
<Button shape="filter" label={view.string.Apply} disabled={search === ''} on:click={save} />
</div>

0 comments on commit 6d3fd41

Please sign in to comment.