mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 08:57:14 +03:00
Do not allow empty string filters (#7010)
This commit is contained in:
parent
c7fb3bdb98
commit
6d3fd41f02
@ -41,7 +41,10 @@
|
||||
}
|
||||
|
||||
function save () {
|
||||
filter.value = search ? [search] : []
|
||||
if (search == null || search === '') {
|
||||
return
|
||||
}
|
||||
filter.value = [search]
|
||||
|
||||
onChange(filter)
|
||||
dispatch('close')
|
||||
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user