Skip to content

Commit 224799d

Browse files
committed
Fix duplicate keys
1 parent 4999970 commit 224799d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib/components/event/event-summary-table.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
getFailedOrPendingEvents(items, $eventStatusFilter);
4343
4444
const iterableKey = (event: IterableEventWithPending) => {
45-
if (isPendingNexusOperation(event)) return event.scheduledEventId;
46-
return event.id;
45+
if (isPendingNexusOperation(event))
46+
return `pending-nexus-${event.scheduledEventId}`;
47+
if (isPendingActivity(event)) return `pending-activity-${event.id}`;
48+
return `event-${event.id}`;
4749
};
4850
</script>
4951

0 commit comments

Comments
 (0)