diff --git a/src/components/page-step/index.tsx b/src/components/page-step/index.tsx index 02bb030ee..f687b8398 100644 --- a/src/components/page-step/index.tsx +++ b/src/components/page-step/index.tsx @@ -74,8 +74,9 @@ export function PageStep({ appName, jobName, stepName }: PageStepProps) {
- Pipeline Step - {step.status.toLowerCase()} + Pipeline Step{' '} + + {step.status?.toLowerCase() ?? 'pending'} {' '} @@ -119,7 +120,7 @@ export function PageStep({ appName, jobName, stepName }: PageStepProps) { {stepName === 'run-pipelines' && - (pipelineRuns?.length > 0 ? ( + (pipelineRuns && pipelineRuns.length > 0 ? (
- + ); diff --git a/src/components/pipeline-run-tasks/pipeline-task-table-row.tsx b/src/components/pipeline-run-tasks/pipeline-task-table-row.tsx index ba39ef35c..52e8e0f73 100644 --- a/src/components/pipeline-run-tasks/pipeline-task-table-row.tsx +++ b/src/components/pipeline-run-tasks/pipeline-task-table-row.tsx @@ -57,7 +57,7 @@ export function PipelineTaskTableRow({ )} - + ); diff --git a/src/components/pipeline-run/index.tsx b/src/components/pipeline-run/index.tsx index dac897bb5..aa46abf68 100644 --- a/src/components/pipeline-run/index.tsx +++ b/src/components/pipeline-run/index.tsx @@ -21,7 +21,10 @@ export function PipelineRun({ pipelineRun }: Props) {
- Pipeline run {pipelineRun.status.toLowerCase()} + Pipeline run{' '} + + {pipelineRun.status?.toLowerCase() ?? 'pending'} + {getPipelineRunExecutionState(pipelineRun.status)} pipeline{' '} diff --git a/src/components/pipeline-runs/pipeline-run-table-row.tsx b/src/components/pipeline-runs/pipeline-run-table-row.tsx index 96ca7edcd..3a54a346f 100644 --- a/src/components/pipeline-runs/pipeline-run-table-row.tsx +++ b/src/components/pipeline-runs/pipeline-run-table-row.tsx @@ -56,7 +56,9 @@ export function PipelineRunTableRow({ appName, jobName, pipelineRun }: Props) { )} - + ); diff --git a/src/components/replica-list/index.tsx b/src/components/replica-list/index.tsx index 2ecd0c5df..06cbfa226 100644 --- a/src/components/replica-list/index.tsx +++ b/src/components/replica-list/index.tsx @@ -117,7 +117,9 @@ export const ReplicaList: FunctionComponent<{ /> - + diff --git a/src/components/replica/index.tsx b/src/components/replica/index.tsx index e9048c5e5..f6a401204 100644 --- a/src/components/replica/index.tsx +++ b/src/components/replica/index.tsx @@ -124,7 +124,9 @@ const Overview = ({ )} {status || ( - + )}
diff --git a/src/utils/pipeline/index.ts b/src/utils/pipeline/index.ts index 0fa487096..292f35dc9 100644 --- a/src/utils/pipeline/index.ts +++ b/src/utils/pipeline/index.ts @@ -27,7 +27,7 @@ export function getPipelineStepDescription(stepName: string): string | null { } } -export function getPipelineStepTitle(stepName: string): string | null { +export function getPipelineStepTitle(stepName?: string): string | null { switch (stepName) { case PipelineStep.CloneConfig: return 'Cloning Radix config';