no-bug: update migration data access to handle undefined safely (gh-12956)

This commit is contained in:
mr. m
2026-03-27 23:01:26 +01:00
committed by GitHub
parent 0829b3ac36
commit 1089e72ef6

View File

@@ -777,7 +777,7 @@ class nsZenWorkspaces {
if (
!this.privateWindowOrDisabled &&
spacesFromStore.length === 0 &&
lazy.ZenSessionStore._migrationData
lazy.ZenSessionStore._migrationData?.spaces
) {
spacesFromStore.push(...lazy.ZenSessionStore._migrationData.spaces);
}