Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: change use-set priority (#2760)

THELOSTSOULcd3a98c0956c
diff --git a/web/src/store/module/global.ts b/web/src/store/module/global.ts
index 680134ea8..efd5a41ca 100644
--- a/web/src/store/module/global.ts
+++ b/web/src/store/module/global.ts
@@ -45,8 +45,8 @@ export const initialGlobalState = async () => {
},
};
defaultGlobalState.locale =
- defaultGlobalState.locale || defaultGlobalState.systemStatus.customizedProfile.locale || findNearestLanguageMatch(i18n.language);
- defaultGlobalState.appearance = defaultGlobalState.appearance || defaultGlobalState.systemStatus.customizedProfile.appearance;
+ defaultGlobalState.systemStatus.customizedProfile.locale || defaultGlobalState.locale || findNearestLanguageMatch(i18n.language);
+ defaultGlobalState.appearance = defaultGlobalState.systemStatus.customizedProfile.appearance || defaultGlobalState.appearance;
}
store.dispatch(setGlobalState(defaultGlobalState));
};