Skip to content

Commit

Permalink
Revert "Fix log filter URL state infinite loop"
Browse files Browse the repository at this point in the history
This reverts commit 43302b3.
  • Loading branch information
Zacqary committed Dec 23, 2019
1 parent 9063d77 commit 94ae628
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ export const useLogFilterUrlState = () => {
});

/* eslint-disable react-hooks/exhaustive-deps */
useEffect(() => {
if (logFilterUrlState && filterQueryAsKuery?.expression !== logFilterUrlState.expression) {
applyLogFilterQuery(logFilterUrlState.expression);
}
}, [logFilterUrlState]);
useEffect(() => applyLogFilterQuery(logFilterUrlState.expression), [logFilterUrlState]);
useEffect(() => setLogFilterUrlState(filterQueryAsKuery), [filterQueryAsKuery]);
/* eslint-enable react-hooks/exhaustive-deps */
};
Expand Down

0 comments on commit 94ae628

Please sign in to comment.