mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-04 12:26:19 +00:00
refactor: workspace setting definitions
This commit is contained in:
@ -121,7 +121,7 @@ const useUserStore = create<UserState>()((set, get) => ({
|
||||
return userSetting;
|
||||
},
|
||||
updateUserSetting: async (userSetting: UserSetting, updateMask: string[]) => {
|
||||
const userId = userSetting.id;
|
||||
const userId = userSetting.userId;
|
||||
const updatedUserSetting = (
|
||||
await userSettingServiceClient.updateUserSetting({
|
||||
id: userId,
|
||||
@ -129,11 +129,6 @@ const useUserStore = create<UserState>()((set, get) => ({
|
||||
updateMask,
|
||||
})
|
||||
).userSetting as UserSetting;
|
||||
console.log("1", {
|
||||
id: userId,
|
||||
userSetting,
|
||||
updateMask,
|
||||
});
|
||||
const userSettingMap = get().userSettingMapById;
|
||||
userSettingMap[userId] = updatedUserSetting;
|
||||
set(userSettingMap);
|
||||
|
Reference in New Issue
Block a user