diff --git a/src/components/pipelines-overview/PipelineRunsStatusCard.tsx b/src/components/pipelines-overview/PipelineRunsStatusCard.tsx index 4a7aafb6..e8b90924 100644 --- a/src/components/pipelines-overview/PipelineRunsStatusCard.tsx +++ b/src/components/pipelines-overview/PipelineRunsStatusCard.tsx @@ -38,9 +38,10 @@ import { import { SummaryProps } from './utils'; import { SummaryResponse, getResultsSummary } from '../utils/summary-api'; import { DataType } from '../utils/tekton-results'; +import { LoadingInline } from '../Loading'; +import { ALL_NAMESPACES_KEY } from '../../consts'; import './PipelinesOverview.scss'; -import { LoadingInline } from '../Loading'; interface PipelinesRunsStatusCardProps { timespan?: number; @@ -71,6 +72,10 @@ const PipelinesRunsStatusCard: React.FC = ({ }; const date = getDropDownDate(timespan).toISOString(); + if (namespace == ALL_NAMESPACES_KEY) { + namespace = '-'; + } + React.useEffect(() => { const summaryOpt = { summary: 'succeeded,cancelled,failed,others,running,total',