fix ui: remove trash icon for non existent search (#2087)
This commit is contained in:
parent
d008b65ac0
commit
911f86530e
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue