modify dependencies to fix partitions filter bug (#1901)
This commit is contained in:
parent
b511b8cdda
commit
5358461040
1 changed files with 27 additions and 3 deletions
|
@ -216,7 +216,15 @@ const Filters: React.FC<FiltersProps> = ({
|
|||
search: `?${qs}`,
|
||||
});
|
||||
},
|
||||
[seekDirection, queryType, activeFilter, currentSeekType, timestamp, query]
|
||||
[
|
||||
seekDirection,
|
||||
queryType,
|
||||
activeFilter,
|
||||
currentSeekType,
|
||||
timestamp,
|
||||
query,
|
||||
selectedPartitions,
|
||||
]
|
||||
);
|
||||
|
||||
const handleSSECancel = () => {
|
||||
|
@ -344,10 +352,26 @@ const Filters: React.FC<FiltersProps> = ({
|
|||
if (location.search?.length === 0) {
|
||||
handleFiltersSubmit(offset);
|
||||
}
|
||||
}, [handleFiltersSubmit, location]);
|
||||
}, [
|
||||
seekDirection,
|
||||
queryType,
|
||||
activeFilter,
|
||||
currentSeekType,
|
||||
timestamp,
|
||||
query,
|
||||
location,
|
||||
]);
|
||||
React.useEffect(() => {
|
||||
handleFiltersSubmit(offset);
|
||||
}, [handleFiltersSubmit, seekDirection]);
|
||||
}, [
|
||||
seekDirection,
|
||||
queryType,
|
||||
activeFilter,
|
||||
currentSeekType,
|
||||
timestamp,
|
||||
query,
|
||||
seekDirection,
|
||||
]);
|
||||
|
||||
React.useEffect(() => {
|
||||
setIsTailing(isLive);
|
||||
|
|
Loading…
Add table
Reference in a new issue