fix ui: remove trash icon for non existent search (#2087)

This commit is contained in:
Delirium 2024-04-15 16:06:49 +02:00 committed by GitHub
parent d008b65ac0
commit 911f86530e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ function SaveSearchModal(props: Props) {
</Button>
<Button onClick={closeHandler}>{'Cancel'}</Button>
</div>
{savedSearch && (
{savedSearch.exists() && (
<Button variant="text" onClick={onDelete}>
<Icon name="trash" size="18" />
</Button>