File tree Expand file tree Collapse file tree
src/components/events/partials/ModalTabsAndPages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import ModalContentTable from "../../../shared/modals/ModalContentTable";
2929 * This component renders the access page for new events and series in the wizards.
3030 */
3131interface RequiredFormProps {
32- 'dublincore/episode_isPartOf' : string ,
32+ isPartOf : string ,
3333 acls : TransformedAcl [ ] ,
3434 aclTemplate : string ,
3535 // theme: string,
@@ -77,14 +77,14 @@ const NewAccessPage = <T extends RequiredFormProps>({
7777
7878 // If we have to use series ACL, fetch it
7979 useEffect ( ( ) => {
80- if ( initEventAclWithSeriesAcl && formik . values [ 'dublincore/episode_isPartOf' ] ) {
81- dispatch ( fetchSeriesDetailsAcls ( formik . values [ 'dublincore/episode_isPartOf' ] ) ) ;
80+ if ( initEventAclWithSeriesAcl && formik . values . isPartOf ) {
81+ dispatch ( fetchSeriesDetailsAcls ( formik . values . isPartOf ) ) ;
8282 }
83- } , [ formik . values , initEventAclWithSeriesAcl , dispatch ] ) ;
83+ } , [ formik . values . isPartOf , initEventAclWithSeriesAcl , dispatch ] ) ;
8484
8585 // If we have to use series ACL, overwrite existing rules
8686 useEffect ( ( ) => {
87- if ( initEventAclWithSeriesAcl && formik . values [ 'dublincore/episode_isPartOf' ] && seriesAcl ) {
87+ if ( initEventAclWithSeriesAcl && formik . values . isPartOf && seriesAcl ) {
8888 formik . setFieldValue ( "acls" , seriesAcl )
8989 }
9090 // eslint-disable-next-line react-hooks/exhaustive-deps
You can’t perform that action at this time.
0 commit comments