Fix clearing offset upon "clear all" button click (#1866)

Co-authored-by: k.morozov <k.morozov@ffin.ru>
This commit is contained in:
Kirill Morozov 2022-04-21 00:59:11 +03:00 committed by GitHub
parent a038762409
commit c5234ce470
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,6 +168,7 @@ const Filters: React.FC<FiltersProps> = ({
const handleClearAllFilters = () => { const handleClearAllFilters = () => {
setCurrentSeekType(SeekType.OFFSET); setCurrentSeekType(SeekType.OFFSET);
setOffset('');
setQuery(''); setQuery('');
changeSeekDirection(SeekDirection.FORWARD); changeSeekDirection(SeekDirection.FORWARD);
getSelectedPartitionsFromSeekToParam(searchParams, partitions); getSelectedPartitionsFromSeekToParam(searchParams, partitions);