Skip to content

Commit

Permalink
Disable fetch if report already exists (#28)
Browse files Browse the repository at this point in the history
Fixes issue with statically rendered reports
  • Loading branch information
ChrisJamesC authored Sep 13, 2023
1 parent 07e621a commit 2f40b4b
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 2f40b4b

Please sign in to comment.