Skip to content

Commit

Permalink
Merge pull request #794 from meiamsome/fix/watchsidebar-decode-layout…
Browse files Browse the repository at this point in the history
…-fix

FIX: WatchSideBar correctly generates content for simulcast link
  • Loading branch information
sphinxrave authored Dec 29, 2024
2 parents 571559c + d455c9c commit 6fdecbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/watch/WatchSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default {
// Fill in blank spaces in the layout with the simulcast videos in order.
// This is for the case where the default layout already has chat boxes specified in content.
const filledContents = layout.map((_, i) => content[i] ?? allSimulcastVideos.shift());
const filledContents = Object.fromEntries(layout.map(({ i }) => [i, content[i] ?? allSimulcastVideos.shift()]));
if (allSimulcastVideos.length) {
console.warn(`Expected all videos to be placeable in default, but ${allSimulcastVideos.length} were not able to be placed.`);
Expand Down

0 comments on commit 6fdecbd

Please sign in to comment.