mirror of
https://github.com/usememos/memos.git
synced 2025-10-10 06:16:35 +08:00
chore: fix get workspace setting
This commit is contained in:
parent
e602aeecc1
commit
f2eb9f1b8f
1 changed files with 2 additions and 2 deletions
|
@ -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({});
|
||||
},
|
||||
})),
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue