From 8123c14d0275303c6089713993f44d0ec32caa7e Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Thu, 31 Jul 2025 15:30:40 +0530 Subject: [PATCH] Fix snapshot object not being merged --- src/viewmodels/base/Snapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewmodels/base/Snapshot.ts b/src/viewmodels/base/Snapshot.ts index 364f118746..e8d0b7412c 100644 --- a/src/viewmodels/base/Snapshot.ts +++ b/src/viewmodels/base/Snapshot.ts @@ -30,7 +30,7 @@ export class Snapshot { * @param snapshot A subset of the snapshot to merge into the current snapshot. */ public merge(snapshot: Partial): void { - this.snapshot = { ...this.snapshot, snapshot }; + this.snapshot = { ...this.snapshot, ...snapshot }; this.emit(); }