Skip to content

Commit 4009322

Browse files
committed
Fetch series ACL only when series changed
1 parent 3db9f1c commit 4009322

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/events/partials/ModalTabsAndPages/NewAccessPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ const NewAccessPage = <T extends RequiredFormProps>({
8080
if (initEventAclWithSeriesAcl && formik.values['dublincore/episode_isPartOf']) {
8181
dispatch(fetchSeriesDetailsAcls(formik.values['dublincore/episode_isPartOf']));
8282
}
83-
}, [formik.values, initEventAclWithSeriesAcl, dispatch]);
83+
// eslint-disable-next-line react-hooks/exhaustive-deps
84+
}, [formik.values['dublincore/episode_isPartOf'], initEventAclWithSeriesAcl, dispatch]);
8485

8586
// If we have to use series ACL, overwrite existing rules
8687
useEffect(() => {

0 commit comments

Comments
 (0)