Fix #6832
This commit is contained in:
parent
637fe8a04b
commit
abb3d2a8d9
|
@ -253,7 +253,7 @@ export const store = createStore({
|
||||||
|
|
||||||
init(state, x) {
|
init(state, x) {
|
||||||
for (const [key, value] of Object.entries(defaultDeviceUserSettings)) {
|
for (const [key, value] of Object.entries(defaultDeviceUserSettings)) {
|
||||||
if (x[key]) {
|
if (Object.prototype.hasOwnProperty.call(x, key)) {
|
||||||
state[key] = x[key];
|
state[key] = x[key];
|
||||||
} else {
|
} else {
|
||||||
state[key] = value;
|
state[key] = value;
|
||||||
|
@ -471,7 +471,7 @@ export const store = createStore({
|
||||||
|
|
||||||
init(state, x) {
|
init(state, x) {
|
||||||
for (const [key, value] of Object.entries(defaultSettings)) {
|
for (const [key, value] of Object.entries(defaultSettings)) {
|
||||||
if (x[key]) {
|
if (Object.prototype.hasOwnProperty.call(x, key)) {
|
||||||
state[key] = x[key];
|
state[key] = x[key];
|
||||||
} else {
|
} else {
|
||||||
state[key] = value;
|
state[key] = value;
|
||||||
|
|
Loading…
Reference in New Issue