mirror of https://github.com/vector-im/riot-web
Fix crash on logging in
If you arrived at the page via a link to a room. Fixes https://github.com/vector-im/vector-web/issues/2634pull/21833/head
parent
7650e3de6e
commit
0bc4659fe0
|
@ -75,6 +75,9 @@ module.exports = React.createClass({
|
||||||
loading: true,
|
loading: true,
|
||||||
screen: undefined,
|
screen: undefined,
|
||||||
|
|
||||||
|
// What the LoggedInView would be showing if visible
|
||||||
|
page_type: PageTypes.RoomDirectory,
|
||||||
|
|
||||||
// If we are viewing a room by alias, this contains the alias
|
// If we are viewing a room by alias, this contains the alias
|
||||||
currentRoomAlias: null,
|
currentRoomAlias: null,
|
||||||
|
|
||||||
|
@ -235,6 +238,7 @@ module.exports = React.createClass({
|
||||||
setStateForNewScreen: function(state) {
|
setStateForNewScreen: function(state) {
|
||||||
const newState = {
|
const newState = {
|
||||||
screen: undefined,
|
screen: undefined,
|
||||||
|
page_type: PageTypes.RoomDirectory,
|
||||||
currentRoomAlias: null,
|
currentRoomAlias: null,
|
||||||
currentRoomId: null,
|
currentRoomId: null,
|
||||||
viewUserId: null,
|
viewUserId: null,
|
||||||
|
|
Loading…
Reference in New Issue