From 377093b776da47996558fab201e7b1dec7ef061d Mon Sep 17 00:00:00 2001 From: twwu Date: Tue, 27 May 2025 18:19:10 +0800 Subject: [PATCH] fix: conditionally render FieldListContainer based on inputFields length --- .../input-field/field-list/index.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/web/app/components/rag-pipeline/components/input-field/field-list/index.tsx b/web/app/components/rag-pipeline/components/input-field/field-list/index.tsx index dd567818c8..81daf0b1ae 100644 --- a/web/app/components/rag-pipeline/components/input-field/field-list/index.tsx +++ b/web/app/components/rag-pipeline/components/input-field/field-list/index.tsx @@ -45,14 +45,16 @@ const FieldList = ({ - + {inputFields.length > 0 && ( + + )} {showInputFieldEditor && (