From 87743fe0e84376d533673c33a49b134f7ab9a676 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 16 Jul 2020 18:34:04 -0600 Subject: [PATCH] Fix size call for devtools state events Fixes https://github.com/vector-im/riot-web/issues/14565 It's not a function --- src/components/views/dialogs/DevtoolsDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js index 26ab71a873..a0c5375843 100644 --- a/src/components/views/dialogs/DevtoolsDialog.js +++ b/src/components/views/dialogs/DevtoolsDialog.js @@ -416,7 +416,7 @@ class RoomStateExplorer extends React.PureComponent { { Array.from(this.roomStateEvents.entries()).map(([eventType, allStateKeys]) => { let onClickFn; - if (allStateKeys.size() === 1 && allStateKeys.has("")) { + if (allStateKeys.size === 1 && allStateKeys.has("")) { onClickFn = this.onViewSourceClick(allStateKeys.get("")); } else { onClickFn = this.browseEventType(eventType);