diff --git a/frontend/src/routes/routines/[id]/+page.svelte b/frontend/src/routes/routines/[id]/+page.svelte index 155fecc..7ddb326 100644 --- a/frontend/src/routes/routines/[id]/+page.svelte +++ b/frontend/src/routes/routines/[id]/+page.svelte @@ -93,11 +93,12 @@ {#each routine.steps.toSorted((a, b) => a.order_index - b.order_index) as step (step.id)}
- {step.order_index + 1} + {step.order_index}
- {#if step.product} -

{step.product.name}

-

{step.product.brand}

+ {#if step.product_id} + {@const product = products.find((p) => p.id === step.product_id)} +

{product?.name ?? step.product_id}

+ {#if product?.brand}

{product.brand}

{/if} {:else if step.action_type}

{step.action_type.replace(/_/g, ' ')}

{:else}