mirror of
https://github.com/usememos/memos.git
synced 2025-10-30 00:06:25 +08:00
fix: shortcuts list (#4936)
This commit is contained in:
parent
79c7fcc8b6
commit
671f4bf88b
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { uniqueId } from "lodash-es";
|
||||
import { makeAutoObservable } from "mobx";
|
||||
import { authServiceClient, inboxServiceClient, userServiceClient } from "@/grpcweb";
|
||||
import { authServiceClient, inboxServiceClient, userServiceClient, shortcutServiceClient } from "@/grpcweb";
|
||||
import { Inbox } from "@/types/proto/api/v1/inbox_service";
|
||||
import { Shortcut } from "@/types/proto/api/v1/shortcut_service";
|
||||
import {
|
||||
|
|
@ -181,6 +181,7 @@ const userStore = (() => {
|
|||
}
|
||||
|
||||
const { settings } = await userServiceClient.listUserSettings({ parent: state.currentUser });
|
||||
const { shortcuts } = await shortcutServiceClient.listShortcuts({ parent: state.currentUser });
|
||||
|
||||
// Extract and store each setting type
|
||||
const generalSetting = settings.find((s) => s.generalSetting)?.generalSetting;
|
||||
|
|
@ -193,6 +194,7 @@ const userStore = (() => {
|
|||
userSessionsSetting: sessionsSetting,
|
||||
userAccessTokensSetting: accessTokensSetting,
|
||||
userWebhooksSetting: webhooksSetting,
|
||||
shortcuts: shortcuts,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue