Skip to content

Commit 5dd58cb

Browse files
authored
fix: Settings saving issue when value is null (#2586)
1 parent a28cc7e commit 5dd58cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const computeSettingsDiff = (before: object, after: object) => {
149149
// diff converts arrays to objects, set original array back here
150150
const setArrays = (localAfter: object, localDiff: object): void => {
151151
for (const [key, value] of Object.entries(localDiff)) {
152-
if (typeof value === 'object') {
152+
if (typeof value === 'object' && value !== null) {
153153
if (Array.isArray(localAfter[key])) {
154154
localDiff[key] = localAfter[key];
155155
} else {

0 commit comments

Comments
 (0)