Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman committed Aug 23, 2024
1 parent 77b8fa4 commit 3d8dc02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/lib/components/event/event-summary-table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<EventSummaryRow
{event}
{index}
group={groups.find((g) => g.eventIds.has(event.id))}
group={groups.find((g) => isEvent(event) && g.eventIds.has(event.id))}
{compact}
{expandAll}
{initialItem}
Expand All @@ -74,7 +74,10 @@
<PendingActivitySummaryRow
{event}
{index}
group={groups.find((g) => g?.pendingActivity?.id === event.id)}
group={groups.find(
(g) =>
isPendingActivity(event) && g?.pendingActivity?.id === event.id,
)}
{expandAll}
/>
{:else if isPendingNexusOperation(event)}
Expand All @@ -83,8 +86,9 @@
{index}
group={groups.find(
(g) =>
isPendingNexusOperation(event) &&
g?.pendingNexusOperation?.scheduledEventId ===
event.scheduledEventId,
event.scheduledEventId,
)}
{expandAll}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utilities/pending-activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const getGroupForEventOrPendingEvent = (
return g.pendingActivity?.id === event.id;
} else if (isPendingNexusOperation(event)) {
return (
g.pendingNexusOperation.scheduledEventId === event?.scheduledEventId
g?.pendingNexusOperation?.scheduledEventId === event?.scheduledEventId
);
}
});
Expand Down

0 comments on commit 3d8dc02

Please sign in to comment.