Skip to content

Commit

Permalink
Fix stupid mistake (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
encX authored Apr 3, 2022
1 parent 7ad7486 commit 102a4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clientside/src/elements/jobDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const JobDisplay: React.FC<JobDisplayProps> = ({ jobs, className }) => {
if (Array.isArray(jobs) && jobs.length === 0) return <div className={className}>idle</div>;
if (Array.isArray(jobs) && jobs.length > 1) return <div className={className}>running {jobs.length} jobs</div>;

const job = Array.isArray(jobs) ? jobs[1] : jobs;
const job = Array.isArray(jobs) ? jobs[0] : jobs;
return (
<div className={className}>
{job.project.name} =&gt; {job.name}
Expand Down

0 comments on commit 102a4b7

Please sign in to comment.