diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js
index 9ef71c3bfe..32cf0c0cd2 100644
--- a/src/components/views/dialogs/DevtoolsDialog.js
+++ b/src/components/views/dialogs/DevtoolsDialog.js
@@ -204,15 +204,16 @@ class RoomStateExplorer extends React.Component {
if (this.state.eventType === null) {
Object.keys(roomStateEvents).forEach((evType) => {
const stateGroup = roomStateEvents[evType];
- const keys = Object.keys(stateGroup);
+ const stateKeys = Object.keys(stateGroup);
- if (keys.length > 1) {
- rows.push();
- } else if (keys.length === 1) {
- rows.push(
-
- );
+ let onClickFn;
+ if (stateKeys.length > 1) {
+ onClickFn = this.browseEventType(evType);
+ } else if (stateKeys.length === 1) {
+ onClickFn = this.onViewSourceClick(stateGroup[stateKeys[0]]);
}
+
+ rows.push();
});
} else {
const evType = this.state.eventType;