diff --git a/plugins/orchestrator/src/components/WorkflowDefinitionViewerPage/WorkflowDefinitionDetailsCard.tsx b/plugins/orchestrator/src/components/WorkflowDefinitionViewerPage/WorkflowDefinitionDetailsCard.tsx
index 5577380e79..56a485827e 100644
--- a/plugins/orchestrator/src/components/WorkflowDefinitionViewerPage/WorkflowDefinitionDetailsCard.tsx
+++ b/plugins/orchestrator/src/components/WorkflowDefinitionViewerPage/WorkflowDefinitionDetailsCard.tsx
@@ -9,6 +9,7 @@ import { Skeleton } from '@material-ui/lab';
import { WorkflowOverview } from '@janus-idp/backstage-plugin-orchestrator-common';
import WorkflowOverviewFormatter from '../../dataFormatters/WorkflowOverviewFormatter';
+import { ProcessInstanceStatus } from '../next/ProcessInstanceStatus';
const useStyles = makeStyles({
details: {
@@ -49,6 +50,11 @@ const WorkflowDefinitionDetailsCard = ({
{
label: 'last run status',
value: formattedWorkflowOverview?.lastRunStatus,
+ children: formattedWorkflowOverview?.lastRunStatus ? (
+
+ ) : null,
},
],
[formattedWorkflowOverview],
@@ -60,11 +66,11 @@ const WorkflowDefinitionDetailsCard = ({
- {details?.map(({ label, value }) => (
+ {details?.map(({ label, value, children }) => (
{/* AboutField requires the value to be defined as a prop as well */}
- {loading ? : value}
+ {loading ? : children || value}
))}