Prevent custom power levels from breaking roles & permissions tab (#7160)
This commit is contained in:
parent
c457da4c6b
commit
c2ab593816
1 changed files with 2 additions and 2 deletions
|
@ -414,9 +414,9 @@ export default class RolesRoomSettingsTab extends React.Component<IProps> {
|
||||||
}
|
}
|
||||||
|
|
||||||
const eventPowerSelectors = Object.keys(eventsLevels).map((eventType, i) => {
|
const eventPowerSelectors = Object.keys(eventsLevels).map((eventType, i) => {
|
||||||
if (isSpaceRoom && plEventsToShow[eventType].hideForSpace) {
|
if (isSpaceRoom && plEventsToShow[eventType]?.hideForSpace) {
|
||||||
return null;
|
return null;
|
||||||
} else if (!isSpaceRoom && plEventsToShow[eventType].hideForRoom) {
|
} else if (!isSpaceRoom && plEventsToShow[eventType]?.hideForRoom) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue