Skip to content

Commit

Permalink
Merge pull request #296 from City-of-Helsinki/read-data-only-once
Browse files Browse the repository at this point in the history
Fix data being constantly reloaded when error occurs on data loading
  • Loading branch information
siren authored Apr 29, 2022
2 parents 5ff6867 + c5d584e commit 74e2806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin-ui/src/component/recurring-reservations/Review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ function Review({ applicationRound }: IProps): JSX.Element | null {
if (typeof applicationRound?.id === "number") {
fetchApplications(applicationRound);
}
}, [applicationRound, notifyError, t]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [applicationRound]);

if (isLoading) {
return <Loader />;
Expand Down

0 comments on commit 74e2806

Please sign in to comment.