Переглянути джерело

Update multiplayer.tsx

main
Steve Ruiz 4 роки тому
джерело
коміт
59fa1e375e
1 змінених файлів з 2 додано та 1 видалено
  1. 2
    1
      packages/dev/src/multiplayer/multiplayer.tsx

+ 2
- 1
packages/dev/src/multiplayer/multiplayer.tsx Переглянути файл

@@ -103,7 +103,8 @@ function TLDrawWrapper() {
103 103
       tlstate.updateUsers(
104 104
         others
105 105
           .toArray()
106
-          .map((other) => other.presence?.user)
106
+          .filter((other) => other.presence)
107
+          .map((other) => other.presence!.user)
107 108
           .filter(Boolean)
108 109
       )
109 110
     })

Завантаження…
Відмінити
Зберегти