Fix snapshot object not being merged

This commit is contained in:
R Midhun Suresh 2025-07-31 15:30:40 +05:30
parent 2b366e82c5
commit 8123c14d02
No known key found for this signature in database

View File

@ -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();
}