Skip to content

Commit

Permalink
Disable fetch if report already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJamesC committed Sep 13, 2023
1 parent 07e621a commit 5f127e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reports/src/capability/useReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const useReport = ({

useEffect(() => {
const fetchReport = async () => {
if (_report) return;
setLoading(true);
try {
const res = await fetch(reportUrl);
Expand Down

0 comments on commit 5f127e9

Please sign in to comment.