remove redundant guards before snapshot.merge (#32937)

* remove redundant guards before snapshot.merge

* fix(viewmodels): restore RedactedBodyViewModel setting guard

* docs(mvvm): note Snapshot.merge change detection
This commit is contained in:
Zack
2026-03-26 14:00:48 +01:00
committed by GitHub
parent cd429874db
commit 411eab9fd2
6 changed files with 9 additions and 35 deletions
@@ -98,6 +98,6 @@ export class ResizerViewModel
};
public onBlur = (): void => {
if (this.getSnapshot().isFocusedViaKeyboard) this.snapshot.merge({ isFocusedViaKeyboard: false });
this.snapshot.merge({ isFocusedViaKeyboard: false });
};
}