Skip to content

Commit

Permalink
Add optional chaining to acl
Browse files Browse the repository at this point in the history
Co-authored-by: Lars Kiesow <[email protected]>
  • Loading branch information
dennis531 and lkiesow authored Jul 29, 2024
1 parent ace958b commit 42081eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slices/eventDetailsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ export const fetchAccessPolicies = createAppAsyncThunk('eventDetails/fetchAccess
return policies;
}

const json = JSON.parse(accessPolicies.episode_access.acl).acl.ace;
const json = JSON.parse(accessPolicies.episode_access.acl).acl?.ace;
if (json === undefined) {
return policies;
}
Expand Down

0 comments on commit 42081eb

Please sign in to comment.