Skip to content

Commit 5d4da43

Browse files
committed
Revert "Fix appliance of series ACL to new event"
This reverts commit 60010c7, which breaks the UI when an event is added to a series
1 parent ccfff97 commit 5d4da43

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
*/
3131
interface 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

0 commit comments

Comments
 (0)