diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-14 09:59:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-14 09:59:33 +0900 |
| commit | abb3d2a8d9316971b0657a8b074735d9bbc5e418 (patch) | |
| tree | 247985b6d9a8a65433eb7c1151e29ace21cb654f /src | |
| parent | Update dependencies :rocket: (diff) | |
| download | sharkey-abb3d2a8d9316971b0657a8b074735d9bbc5e418.tar.gz sharkey-abb3d2a8d9316971b0657a8b074735d9bbc5e418.tar.bz2 sharkey-abb3d2a8d9316971b0657a8b074735d9bbc5e418.zip | |
Fix #6832
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/store.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/store.ts b/src/client/store.ts index 952c5fef53..76295e5489 100644 --- a/src/client/store.ts +++ b/src/client/store.ts @@ -253,7 +253,7 @@ export const store = createStore({ init(state, x) { for (const [key, value] of Object.entries(defaultDeviceUserSettings)) { - if (x[key]) { + if (Object.prototype.hasOwnProperty.call(x, key)) { state[key] = x[key]; } else { state[key] = value; @@ -471,7 +471,7 @@ export const store = createStore({ init(state, x) { for (const [key, value] of Object.entries(defaultSettings)) { - if (x[key]) { + if (Object.prototype.hasOwnProperty.call(x, key)) { state[key] = x[key]; } else { state[key] = value; |