Skip to content

Commit

Permalink
fix(web): issue causing ci to fail
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Oct 30, 2023
1 parent 3619c4c commit 8d07722
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/lib/components/ResultCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
class="h-8 w-8 p-1 text-black hover:text-brand-600 dark:text-white dark:hover:text-brand-600"
/>
{:else}
<StateIcon state={$downloads[result.id].status.state} />
<StateIcon state={$downloads[result.id].status?.state} />
{/if}
</footer>
</Card>
2 changes: 1 addition & 1 deletion apps/web/src/lib/components/StateIcon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
type IconSource
} from '@yd/ui';
export let state: DownloadState;
export let state: DownloadState = DownloadState.ERROR;
const lookup: Record<DownloadState, { icon: IconSource; class: string }> = {
[DownloadState.WAITING]: {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/routes/downloads/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
{:else if column.key === 'state'}
<StatusBadge status={row.status} />
{:else if column.key === 'actions'}
<DownloadActions video={row} />
<DownloadActions download={row} />
{/if}
</span>
</Table>
Expand Down

1 comment on commit 8d07722

@vercel
Copy link

@vercel vercel bot commented on 8d07722 Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.