Skip to content
Snippets Groups Projects
Commit abb3d2a8 authored by syuilo's avatar syuilo
Browse files

Fix #6832

parent 637fe8a0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment