From 09dcb283dea5df686932092b43d1b20eed3ef5c5 Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Mon, 5 Aug 2024 17:38:08 -0700 Subject: [PATCH] handle npe Signed-off-by: Tyler Ohlsen --- .../processor_inputs/text_chunking_processor_inputs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/text_chunking_processor_inputs.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/text_chunking_processor_inputs.tsx index 9f0f34d9..607be6f9 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/text_chunking_processor_inputs.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/text_chunking_processor_inputs.tsx @@ -88,7 +88,7 @@ export function TextChunkingProcessorInputs( onFormChange={props.onFormChange} /> - {fieldMapValue.length === 0 && ( + {fieldMapValue?.length === 0 && ( <>