Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Prevent custom power levels from breaking roles & permissions tab (#7160
Browse files Browse the repository at this point in the history
)
  • Loading branch information
t3chguy authored Nov 19, 2021
1 parent c457da4 commit c2ab593
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ export default class RolesRoomSettingsTab extends React.Component<IProps> {
}

const eventPowerSelectors = Object.keys(eventsLevels).map((eventType, i) => {
if (isSpaceRoom && plEventsToShow[eventType].hideForSpace) {
if (isSpaceRoom && plEventsToShow[eventType]?.hideForSpace) {
return null;
} else if (!isSpaceRoom && plEventsToShow[eventType].hideForRoom) {
} else if (!isSpaceRoom && plEventsToShow[eventType]?.hideForRoom) {
return null;
}

Expand Down

0 comments on commit c2ab593

Please sign in to comment.