Skip to content

Commit

Permalink
fix: reduce redundant tag explorer fetches
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenjaneczek committed Nov 9, 2023
1 parent d4e3b03 commit 2ff4454
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 2ff4454

Please sign in to comment.