Use Object.assign to set initial state of MessageComposerStore

Otherwise we just modify the initial state when running
pull/21833/head
Luke Barnard 2017-07-05 13:38:34 +01:00
parent 3d5b3ed7ad
commit df23a6cd85
1 changed files with 1 additions and 1 deletions

View File

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