Skip to content

Commit

Permalink
fix event attribution logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheraff committed Jul 8, 2024
1 parent a8c1db8 commit 2685d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/client/tasks/Task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function Graph({
const end = adjustDate(step.status === 'stalled' || step.status === 'waiting' || step.status === 'running' ? endDate : step.updated_at)
const width = (end - start) / adjustedInterval * 100
const isHovered = Boolean(hoveredEvent.length) && hoveredEvent.some(i => cleanEventName(data.events[i].key, job).startsWith(step.step))
const events = data.events.filter((event) => event.key.startsWith(`step/${job.job}/${step.step}`))
const events = data.events.filter((event) => event.key.startsWith(`step/${job.job}/${step.step}/`))
return (
<Fragment key={i}>
{i > 0 && step.discovered_on !== data.steps[i - 1].discovered_on && (
Expand Down

0 comments on commit 2685d25

Please sign in to comment.