Update coop-state.ts
This commit is contained in:
parent
a315f8e9a6
commit
11b157dc88
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ const coopState = createState({
|
|||
},
|
||||
setOthers(data, payload: { others: User<CoopPresence>[] }) {
|
||||
const { others } = payload
|
||||
if (!others) return
|
||||
data.others = Object.fromEntries(
|
||||
others.map((user) => [user.connectionId, user])
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue