Search: fix 'x' appearing incorrectly
- Need to handle the 'undefined' case. The change will cover undefined, null and blank string (blank string === 'All').
This commit is contained in:
parent
30d5b3006d
commit
294866fb4b
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ const SearchOptions = (props: Props) => {
|
||||||
<Button
|
<Button
|
||||||
button="close"
|
button="close"
|
||||||
className={classnames('close-button', {
|
className={classnames('close-button', {
|
||||||
'close-button--visible': options[SEARCH_OPTIONS.TIME_FILTER] !== '',
|
'close-button--visible': options[SEARCH_OPTIONS.TIME_FILTER],
|
||||||
})}
|
})}
|
||||||
icon={ICONS.REMOVE}
|
icon={ICONS.REMOVE}
|
||||||
onClick={() => updateSearchOptions(SEARCH_OPTIONS.TIME_FILTER, '')}
|
onClick={() => updateSearchOptions(SEARCH_OPTIONS.TIME_FILTER, '')}
|
||||||
|
|
Loading…
Reference in a new issue