Use Object.assign to set initial state of MessageComposerStore
Otherwise we just modify the initial state when runningpull/21833/head
parent
3d5b3ed7ad
commit
df23a6cd85
|
@ -32,7 +32,7 @@ class MessageComposerStore extends Store {
|
||||||
super(dis);
|
super(dis);
|
||||||
|
|
||||||
// Initialise state
|
// Initialise state
|
||||||
this._state = INITIAL_STATE;
|
this._state = Object.assign({}, INITIAL_STATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
_setState(newState) {
|
_setState(newState) {
|
||||||
|
|
Loading…
Reference in New Issue