Skip to content

Commit

Permalink
Merge pull request #853 from gagansuie/db-migration
Browse files Browse the repository at this point in the history
Fix: race condition videoItems null issue
  • Loading branch information
gagansuie authored Jan 11, 2024
2 parents 12615a3 + 3d85d85 commit 03fc277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/channel/[channelId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
} else {
const activeGuests = parsedMsg.activeGuests
if (activeGuests?.length) {
if (channel.videoItems.length) {
if (channel.videoItems?.length) {
// for users that are in the channel and new users join
// add new users but dont overwrite the existing ones streaming
channel.videoItems = activeGuests.map((guest: any) => {
Expand Down

0 comments on commit 03fc277

Please sign in to comment.