make copy of initial state, as there can be multiple instances now

pull/21833/head
Bruno Windels 2018-11-07 16:30:02 +01:00
parent 720bc11aa4
commit f95b26179f
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export class RoomViewStore extends Store {
super(dis); super(dis);
// Initialise state // Initialise state
this._state = INITIAL_STATE; this._state = Object.assign({}, INITIAL_STATE);
} }
_setState(newState) { _setState(newState) {