fix: remove keyed each on recipe tags to handle duplicate tag names
All checks were successful
CI / update (push) Successful in 3m44s
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:
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user