Skip to content

Commit

Permalink
disable prefetch when consultationId is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
UdaySagar-Git committed Dec 17, 2024
1 parent bfbc5d3 commit 25a4bbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Files/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export const FileUpload = (props: FileUploadProps) => {
limit: RESULTS_PER_PAGE_LIMIT,
offset: offset,
},
prefetch: !!consultationId,
});

const queries = {
Expand Down

0 comments on commit 25a4bbe

Please sign in to comment.