diff --git a/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsx b/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsx index 89dbc4d87d..39dc60b2f7 100644 --- a/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsx +++ b/frontend/src/container/PipelinePage/PipelineListsView/PipelineExpandView.tsx @@ -193,7 +193,8 @@ function PipelineExpandView({ }, [setActionType]); const footer = useCallback((): JSX.Element | undefined => { - if (prevPipelineData.length === 0 || isEditingActionMode) { + const prevPipelinesCount = prevPipelineData?.length || 0; + if (prevPipelinesCount === 0 || isEditingActionMode) { return (