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.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix get workspace setting
Stevenf2eb9f1b8f9f
diff --git a/web/src/store/v1/workspaceSetting.ts b/web/src/store/v1/workspaceSetting.tsindex 195838f03..555ef198b 100644--- a/web/src/store/v1/workspaceSetting.ts+++ b/web/src/store/v1/workspaceSetting.ts@@ -22,8 +22,8 @@ export const useWorkspaceSettingStore = create(}set({ workspaceSettingByName: { ...get().workspaceSettingByName, [setting.name]: setting } });},- getWorkspaceSettingByKey: (key: WorkspaceSettingKey) => {- return get().workspaceSettingByName[`${WorkspaceSettingPrefix}${key}`];+ getWorkspaceSettingByKey: (key: WorkspaceSettingKey): WorkspaceSetting => {+ return get().workspaceSettingByName[`${WorkspaceSettingPrefix}${key}`] || WorkspaceSetting.fromPartial({});},})),);