From 8abd35f581c696e13ff5fa40f361a229f79192d8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 12 Sep 2017 15:48:13 +0100 Subject: [PATCH] Remove spurious cancel button That appeared if you clicked on a room from the room directory (it didn't do anything). It's only supposed to be shown when editing room settings. --- src/components/views/rooms/RoomHeader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 499fdf21cc..63f5a749f3 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -56,7 +56,7 @@ module.exports = React.createClass({ editing: false, inRoom: false, onSaveClick: function() {}, - onCancelClick: function() {}, + onCancelClick: null, }; },