Merge pull request #5008 from matrix-org/travis/fix-devtools

Fix size call for devtools state events
This commit is contained in:
Travis Ralston 2020-07-17 07:19:20 -06:00 committed by GitHub
commit 08f88550b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -416,7 +416,7 @@ class RoomStateExplorer extends React.PureComponent {
{ {
Array.from(this.roomStateEvents.entries()).map(([eventType, allStateKeys]) => { Array.from(this.roomStateEvents.entries()).map(([eventType, allStateKeys]) => {
let onClickFn; let onClickFn;
if (allStateKeys.size() === 1 && allStateKeys.has("")) { if (allStateKeys.size === 1 && allStateKeys.has("")) {
onClickFn = this.onViewSourceClick(allStateKeys.get("")); onClickFn = this.onViewSourceClick(allStateKeys.get(""));
} else { } else {
onClickFn = this.browseEventType(eventType); onClickFn = this.browseEventType(eventType);