mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix log filter URL state infinite loop
This commit is contained in:
parent
a7fe3efa01
commit
43302b354a
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@ export const useLogFilterUrlState = () => {
|
|||
});
|
||||
|
||||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
useEffect(() => applyLogFilterQuery(logFilterUrlState.expression), [logFilterUrlState]);
|
||||
useEffect(() => {
|
||||
if (logFilterUrlState && filterQueryAsKuery?.expression !== logFilterUrlState.expression) {
|
||||
applyLogFilterQuery(logFilterUrlState.expression);
|
||||
}
|
||||
}, [logFilterUrlState]);
|
||||
useEffect(() => setLogFilterUrlState(filterQueryAsKuery), [filterQueryAsKuery]);
|
||||
/* eslint-enable react-hooks/exhaustive-deps */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue