Skip to content

Commit

Permalink
fix: executor conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
gluonfield committed Jul 14, 2024
1 parent 36df0d3 commit a31e67f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/app/runs/[id]/components/General/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export const General: React.FC<GeneralProps> = ({ workflow, workspace }: General
<dd className="text-sm leading-6 text-gray-500">{workflow.container}</dd>
</div>
)}
<div className="mt-4 flex w-full flex-none gap-x-4">
<dt className="flex-none">
<PiEngineLight className="h-6 w-5 text-gray-400" aria-hidden="true" />
</dt>
<dd className="text-sm leading-6 text-gray-500">{executor}</dd>
</div>
{executor !== null && (
<div className="mt-4 flex w-full flex-none gap-x-4">
<dt className="flex-none">
<PiEngineLight className="h-6 w-5 text-gray-400" aria-hidden="true" />
</dt>
<dd className="text-sm leading-6 text-gray-500">{executor}</dd>
</div>
)}
<div className="mt-4 flex w-full flex-none gap-x-4">
<dt className="flex-none">
<BuildingLibraryIcon className="h-6 w-5 text-gray-400" aria-hidden="true" />
Expand Down

0 comments on commit a31e67f

Please sign in to comment.