mirror of https://github.com/vector-im/riot-web
Merge pull request #3857 from matrix-org/t3chguy/Array.concat
Fix Array.concat undefinedpull/21833/head
commit
e88f062f01
|
@ -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] || {}),
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in New Issue