Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: handle prevPipelineData being undefined in PipelineExpandView footer (#3264)

Raj Kamal Singhe61b0a4d673b
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 (
<FooterButton type="link" onClick={addNewProcessorHandler}>
<PlusCircleOutlined />