Skip to content

Commit

Permalink
Merge pull request #1343 from CodeCrowCorp/dev
Browse files Browse the repository at this point in the history
Fix: vods crashing error
  • Loading branch information
gagansuie authored Aug 11, 2024
2 parents 4319d2a + 5a269ff commit ad0cfa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage-website",
"version": "0.3.05",
"version": "0.3.06",
"license": "GPL-3.0",
"private": true,
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/Channel/Stream/VodList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
onMount(async () => {
vods = await get(`vods?channelId=${channelId}`)
if (hostUserId !== $page.data.user?.userId) {
vods = vods.filter((vod: any) => vod.isVisible)
if (vods?.length && hostUserId !== $page.data.user?.userId) {
vods = vods.filter((vod: any) => vod?.isVisible)
}
})
</script>
Expand Down

0 comments on commit ad0cfa2

Please sign in to comment.