mirror of https://github.com/vector-im/riot-web
Merge pull request #389 from matrix-org/dbkr/room_published_check_controlled
Don't leave isRoomPublished as undefinedpull/21833/head
commit
e1fea24fd6
|
@ -70,7 +70,9 @@ module.exports = React.createClass({
|
|||
// is also called from the saving code so we must return the correct value here
|
||||
// if we have it (although this could race if the user saves before we load whether
|
||||
// the room is published or not).
|
||||
isRoomPublished: this._originalIsRoomPublished,
|
||||
// Default to false if it's undefined, otherwise react complains about changing
|
||||
// components from uncontrolled to controlled
|
||||
isRoomPublished: this._originalIsRoomPublished || false,
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue