Use Object.assign to set initial state of MessageComposerStore
Otherwise we just modify the initial state when running
This commit is contained in:
@@ -32,7 +32,7 @@ class MessageComposerStore extends Store {
|
||||
super(dis);
|
||||
|
||||
// Initialise state
|
||||
this._state = INITIAL_STATE;
|
||||
this._state = Object.assign({}, INITIAL_STATE);
|
||||
}
|
||||
|
||||
_setState(newState) {
|
||||
|
||||
Reference in New Issue
Block a user