mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Use Object.assign to set initial state of MessageComposerStore
Otherwise we just modify the initial state when running
This commit is contained in:
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
Block a user