We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fe3ef commit 43302b3Copy full SHA for 43302b3
x-pack/legacy/plugins/infra/public/containers/logs/log_filter/use_log_filter_url_state.tsx
@@ -32,7 +32,11 @@ export const useLogFilterUrlState = () => {
32
});
33
34
/* eslint-disable react-hooks/exhaustive-deps */
35
- useEffect(() => applyLogFilterQuery(logFilterUrlState.expression), [logFilterUrlState]);
+ useEffect(() => {
36
+ if (logFilterUrlState && filterQueryAsKuery?.expression !== logFilterUrlState.expression) {
37
+ applyLogFilterQuery(logFilterUrlState.expression);
38
+ }
39
+ }, [logFilterUrlState]);
40
useEffect(() => setLogFilterUrlState(filterQueryAsKuery), [filterQueryAsKuery]);
41
/* eslint-enable react-hooks/exhaustive-deps */
42
};
0 commit comments