From c5d584ec92b955573722c1e1aed08f503c1662b8 Mon Sep 17 00:00:00 2001 From: Sami Siren Date: Fri, 29 Apr 2022 10:38:12 +0300 Subject: [PATCH] fix bug when data was being loaded repeatetly when error occurred --- admin-ui/src/component/recurring-reservations/Review.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin-ui/src/component/recurring-reservations/Review.tsx b/admin-ui/src/component/recurring-reservations/Review.tsx index fe7a1da136..fab6329a21 100644 --- a/admin-ui/src/component/recurring-reservations/Review.tsx +++ b/admin-ui/src/component/recurring-reservations/Review.tsx @@ -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 ;