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: shortcuts list (#4936)

Colin Holzman671f4bf88b4b
diff --git a/web/src/store/user.ts b/web/src/store/user.ts
index 8d2aafc97..08bd8ff21 100644
--- a/web/src/store/user.ts
+++ b/web/src/store/user.ts
@@ -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,
});
};