mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
make copy of initial state, as there can be multiple instances now
This commit is contained in:
parent
720bc11aa4
commit
f95b26179f
@ -58,7 +58,7 @@ export class RoomViewStore extends Store {
|
||||
super(dis);
|
||||
|
||||
// Initialise state
|
||||
this._state = INITIAL_STATE;
|
||||
this._state = Object.assign({}, INITIAL_STATE);
|
||||
}
|
||||
|
||||
_setState(newState) {
|
||||
|
Loading…
Reference in New Issue
Block a user