Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 74e2806

Browse files
authored
Merge pull request #296 from City-of-Helsinki/read-data-only-once
Fix data being constantly reloaded when error occurs on data loading
2 parents 5ff6867 + c5d584e commit 74e2806

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • admin-ui/src/component/recurring-reservations

admin-ui/src/component/recurring-reservations/Review.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ function Review({ applicationRound }: IProps): JSX.Element | null {
255255
if (typeof applicationRound?.id === "number") {
256256
fetchApplications(applicationRound);
257257
}
258-
}, [applicationRound, notifyError, t]);
258+
// eslint-disable-next-line react-hooks/exhaustive-deps
259+
}, [applicationRound]);
259260

260261
if (isLoading) {
261262
return <Loader />;

0 commit comments

Comments
 (0)