diff --git a/frontend/src/pages/GettingStarted.tsx b/frontend/src/pages/GettingStarted.tsx index 1603e777e94..1597fa023e8 100644 --- a/frontend/src/pages/GettingStarted.tsx +++ b/frontend/src/pages/GettingStarted.tsx @@ -129,14 +129,11 @@ export class GettingStarted extends Page<{}, { links: string[] }> { .listPipelines(undefined, 10, undefined, createAndEncodeFilter(name)) .then(pipelineList => { const pipelines = pipelineList.pipelines; - if (!pipelines || pipelines.length !== 1) { + if (pipelines?.length !== 1) { + // We only return the id when we can accurately identified it. return ''; } - const pipeline = pipelines[0]; - if (!pipeline.id) { - return ''; - } - return pipeline.id; + return pipelines[0].id || ''; }) .catch(() => ''), ),