fix: remove keyed each on recipe tags to handle duplicate tag names
All checks were successful
CI / update (push) Successful in 3m44s

Duplicate tags (e.g. "Butter" at two indexes) caused a Svelte
each_key_duplicate error that broke rendering on /recipes.
Also use past tense for angelus streak button to match rosary.
This commit is contained in:
2026-04-07 20:03:15 +02:00
parent a432e6ebd5
commit 8e4ba896e1
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ const slots: { key: TimeSlot; icon: typeof Coffee; color: string }[] = [
const labels = $derived({
days: isLatin ? 'Dies' : isEnglish ? (displayStreak === 1 && !showFraction ? 'Day' : 'Days') : (displayStreak === 1 && !showFraction ? 'Tag' : 'Tage'),
pray: isLatin ? 'Ora' : isEnglish ? 'Pray' : 'Beten',
pray: isLatin ? 'Oravi' : isEnglish ? 'Prayed' : 'Gebetet',
done: isLatin ? 'Hodie completa' : isEnglish ? 'Done today' : 'Heute fertig',
morning: isLatin ? 'Mane' : isEnglish ? 'Morning' : 'Morgens',
noon: isLatin ? 'Meridie' : isEnglish ? 'Noon' : 'Mittags',

View File

@@ -173,7 +173,7 @@
<p class="name">{@html recipe.name}</p>
{#if recipe.tags?.length}
<div class="tags">
{#each recipe.tags as tag (tag)}
{#each recipe.tags as tag}
<a href="{routePrefix}/tag/{tag}" class="tag">{tag}</a>
{/each}
</div>