@@ -24,7 +24,7 @@ import ModalContentTable from "../../../shared/modals/ModalContentTable";
2424 * This component renders the access page for new events and series in the wizards.
2525 */
2626interface RequiredFormProps {
27- isPartOf : string ,
27+ 'dublincore/episode_isPartOf' : string ,
2828 policies : TransformedAcl [ ] ,
2929 aclTemplate : string ,
3030 // theme: string,
@@ -76,14 +76,15 @@ const NewAccessPage = <T extends RequiredFormProps>({
7676
7777 // If we have to use series ACL, fetch it
7878 useEffect ( ( ) => {
79- if ( initEventAclWithSeriesAcl && formik . values . isPartOf ) {
80- dispatch ( fetchSeriesDetailsAcls ( formik . values . isPartOf ) ) ;
79+ if ( initEventAclWithSeriesAcl && formik . values [ 'dublincore/episode_isPartOf' ] ) {
80+ dispatch ( fetchSeriesDetailsAcls ( formik . values [ 'dublincore/episode_isPartOf' ] ) ) ;
8181 }
82- } , [ formik . values . isPartOf , initEventAclWithSeriesAcl , dispatch ] ) ;
82+ // eslint-disable-next-line react-hooks/exhaustive-deps
83+ } , [ formik . values [ 'dublincore/episode_isPartOf' ] , initEventAclWithSeriesAcl , dispatch ] ) ;
8384
8485 // If we have to use series ACL, overwrite existing rules
8586 useEffect ( ( ) => {
86- if ( initEventAclWithSeriesAcl && formik . values . isPartOf && seriesAcl ) {
87+ if ( initEventAclWithSeriesAcl && formik . values [ 'dublincore/episode_isPartOf' ] && seriesAcl ) {
8788 formik . setFieldValue ( "acls" , seriesAcl ) ;
8889 }
8990 // eslint-disable-next-line react-hooks/exhaustive-deps
0 commit comments