Skip to content

Commit

Permalink
fix: pass correct episode ID to resetItem and retryItem functions
Browse files Browse the repository at this point in the history
  • Loading branch information
machetie committed Nov 15, 2024
1 parent 8ccf9d3 commit 35600b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/[type=mediaType]/[id]/[season]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@
>
<button
class="flex items-center gap-2 rounded-md bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50 disabled:cursor-not-allowed"
on:click|stopPropagation={() => resetItem(data.mediaID)}
on:click|stopPropagation={() => resetItem(episode.id)}
disabled={isResetting || isRetrying}
>
<CirclePower class="size-4" class:animate-spin={isResetting} />
{isResetting ? 'Resetting...' : 'Reset'}
</button>
<button
class="flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed"
on:click|stopPropagation={() => retryItem(data.mediaID)}
on:click|stopPropagation={() => retryItem(episode.id)}
disabled={isResetting || isRetrying}
>
<RotateCcw class="size-4" class:animate-spin={isRetrying} />
Expand Down

0 comments on commit 35600b1

Please sign in to comment.