Skip to content

Commit

Permalink
fix(webapp): console log error streams null
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Dec 23, 2024
1 parent 7d97632 commit be0e994
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions webapp/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ export default function Layout(props: { meetingId: string }) {

const refresh = async () => {
const data = (await getRoom(props.meetingId)).streams
const r = Object.keys(data)
.filter(i => i !== localStreamId)
.filter(i => !!i)
.reduce((map, i) => {
map[i] = data[i]
return map
}, {} as { [_: string]: Stream })
setRemoteUserStatus(r)
if (data) {
const r = Object.keys(data)
.filter(i => i !== localStreamId)
.filter(i => !!i)
.reduce((map, i) => {
map[i] = data[i]
return map
}, {} as { [_: string]: Stream })
setRemoteUserStatus(r)
}
}

const callEnd = async () => {
Expand Down

0 comments on commit be0e994

Please sign in to comment.