There was an error while loading. Please reload this page.
1 parent 88b594f commit b883a4cCopy full SHA for b883a4c
1 file changed
src/libs/actions/Session/index.ts
@@ -793,10 +793,17 @@ function setupNewDotAfterTransitionFromOldDot(hybridAppSettings: HybridAppSettin
793
];
794
795
for (const [key, value] of Object.entries(newDotOnyxValues)) {
796
+ // `?? {}` used to stand in for a missing value, but these keys are not all objects —
797
+ // merging `{}` into SHOULD_USE_STAGING_SERVER leaves a truthy non-boolean behind. There is
798
+ // nothing to apply when OldDot sends nothing, so skip the key instead.
799
+ if (value === undefined || value === null) {
800
+ continue;
801
+ }
802
+
803
onyxUpdates.push({
804
onyxMethod: Onyx.METHOD.MERGE,
805
key,
- value: value ?? {},
806
+ value,
807
} as OnyxUpdate<keyof typeof newDotOnyxValues>);
808
}
809
0 commit comments