Fix issue with location of socket metadata
This commit is contained in:
parent
8f601a2c58
commit
aedd04b98a
|
@ -127,8 +127,8 @@ export const selectedAutomation = derived(automationStore, $automationStore => {
|
|||
export const userSelectedResourceMap = derived(userStore, $userStore => {
|
||||
let map = {}
|
||||
$userStore.forEach(user => {
|
||||
if (user.selectedResourceId) {
|
||||
map[user.selectedResourceId] = user
|
||||
if (user.builderMetadata?.selectedResourceId) {
|
||||
map[user.builderMetadata?.selectedResourceId] = user
|
||||
}
|
||||
})
|
||||
return map
|
||||
|
|
|
@ -86,8 +86,10 @@ export default class BuilderSocket extends BaseSocket {
|
|||
|
||||
async updateUser(socket: Socket, patch: Object) {
|
||||
await super.updateUser(socket, {
|
||||
...socket.data.builderMetadata,
|
||||
...patch,
|
||||
builderMetadata: {
|
||||
...socket.data.builderMetadata,
|
||||
...patch,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -71,8 +71,10 @@ export default class GridSocket extends BaseSocket {
|
|||
|
||||
async updateUser(socket: Socket, patch: Object) {
|
||||
await super.updateUser(socket, {
|
||||
...socket.data.gridMetadata,
|
||||
...patch,
|
||||
gridMetadata: {
|
||||
...socket.data.gridMetadata,
|
||||
...patch,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue