diff --git a/src/components/views/settings/tabs/room/BridgeSettingsTab.js b/src/components/views/settings/tabs/room/BridgeSettingsTab.js index 71b0169788..19c19d3bc6 100644 --- a/src/components/views/settings/tabs/room/BridgeSettingsTab.js +++ b/src/components/views/settings/tabs/room/BridgeSettingsTab.js @@ -137,7 +137,7 @@ export default class BridgeSettingsTab extends React.Component { const client = MatrixClientPeg.get(); const roomState = (client.getRoom(roomId)).currentState; - const bridgeEvents = Array.concat(...BRIDGE_EVENT_TYPES.map((typeName) => + const bridgeEvents = [].concat(...BRIDGE_EVENT_TYPES.map((typeName) => Object.values(roomState.events[typeName] || {}), ));