mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 05:25:57 +08:00
fix: handle prevPipelineData being undefined in PipelineExpandView footer (#3264)
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
ff392ba883
commit
e61b0a4d67
@ -193,7 +193,8 @@ function PipelineExpandView({
|
|||||||
}, [setActionType]);
|
}, [setActionType]);
|
||||||
|
|
||||||
const footer = useCallback((): JSX.Element | undefined => {
|
const footer = useCallback((): JSX.Element | undefined => {
|
||||||
if (prevPipelineData.length === 0 || isEditingActionMode) {
|
const prevPipelinesCount = prevPipelineData?.length || 0;
|
||||||
|
if (prevPipelinesCount === 0 || isEditingActionMode) {
|
||||||
return (
|
return (
|
||||||
<FooterButton type="link" onClick={addNewProcessorHandler}>
|
<FooterButton type="link" onClick={addNewProcessorHandler}>
|
||||||
<PlusCircleOutlined />
|
<PlusCircleOutlined />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user