Skip to content

Commit

Permalink
fix: reduce redundant tag explorer fetches (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenjaneczek authored Nov 10, 2023
1 parent 3c5a959 commit 2170010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/pages/TagExplorerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ function TagExplorerView() {
return () => fetchData.abort('cancel');
}
return undefined;
}, [from, until, query, groupByTagValue, dispatch]);
}, [from, until, query, groupByTagValue, refreshToken, dispatch]);

useEffect(() => {
if (from && until && query) {
if (from && until && query && groupByTag) {
const fetchData = dispatch(fetchTagExplorerView(null));
return () => fetchData.abort('cancel');
}
Expand Down

0 comments on commit 2170010

Please sign in to comment.