mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-09-22 02:23:46 +00:00
fix: use index key for timeline activity changes to avoid duplicate field keys
Activity entries can have the same field changed multiple times (e.g.
status: active → completed; status: completed → planned). The {#each}
block was keyed by change.field which caused each_key_duplicate errors
in Svelte. Switch to array index key since duplicate fields are valid.
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
</div>
|
||||
{#if changes.length > 0}
|
||||
<div class="changes">
|
||||
{#each changes as change (change.field)}
|
||||
{#each changes as change, i (i)}
|
||||
<span class="change-pill">
|
||||
<span class="change-field">{change.field}:</span>
|
||||
<span class="change-from">{change.from}</span>
|
||||
|
||||
Reference in New Issue
Block a user