Skip to content

Commit

Permalink
Show only last job in playback bar
Browse files Browse the repository at this point in the history
  • Loading branch information
annavik committed Nov 7, 2023
1 parent 6040f93 commit c7af4ee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export const CaptureJob = ({ captureId }: { captureId: string }) => {
return (
<>
<NewJobDialog captureId={captureId} />
{capture?.jobs.map((job) => (
<CaptureJobDialog id={job.id} />
))}
{capture?.jobs.length ? (
<CaptureJobDialog id={capture.jobs[0].id} />
) : null}
</>
)
}

0 comments on commit c7af4ee

Please sign in to comment.