mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-11 07:06:31 +02:00
Fix snapshot object not being merged
This commit is contained in:
parent
2b366e82c5
commit
8123c14d02
@ -30,7 +30,7 @@ export class Snapshot<T> {
|
||||
* @param snapshot A subset of the snapshot to merge into the current snapshot.
|
||||
*/
|
||||
public merge(snapshot: Partial<T>): void {
|
||||
this.snapshot = { ...this.snapshot, snapshot };
|
||||
this.snapshot = { ...this.snapshot, ...snapshot };
|
||||
this.emit();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user