mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 15:39:00 +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]);
|
||||
|
||||
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 />
|
||||
|
Loading…
x
Reference in New Issue
Block a user