mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Fix Bridge Settings Tab
This commit is contained in:
parent
fe2f29d78e
commit
f784500b1c
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ export default class BridgeSettingsTab extends React.Component {
|
||||||
if (!content || !content.channel || !content.protocol) {
|
if (!content || !content.channel || !content.protocol) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return <BridgeTile room={room} ev={event}></BridgeTile>;
|
return <BridgeTile key={event.getId()} room={room} ev={event}></BridgeTile>;
|
||||||
}
|
}
|
||||||
|
|
||||||
static getBridgeStateEvents(roomId) {
|
static getBridgeStateEvents(roomId) {
|
||||||
|
@ -45,7 +45,7 @@ export default class BridgeSettingsTab extends React.Component {
|
||||||
const roomState = (client.getRoom(roomId)).currentState;
|
const roomState = (client.getRoom(roomId)).currentState;
|
||||||
|
|
||||||
const bridgeEvents = [].concat(...BRIDGE_EVENT_TYPES.map((typeName) =>
|
const bridgeEvents = [].concat(...BRIDGE_EVENT_TYPES.map((typeName) =>
|
||||||
Object.values(roomState.events[typeName] || {}),
|
Array.from(roomState.events.get(typeName).values()),
|
||||||
));
|
));
|
||||||
|
|
||||||
return bridgeEvents;
|
return bridgeEvents;
|
||||||
|
|
Loading…
Reference in a new issue