diff --git a/web/app/components/rag-pipeline/components/input-field/editor/form/hooks.ts b/web/app/components/rag-pipeline/components/input-field/editor/form/hooks.ts index 986a69c188..bbca128cf1 100644 --- a/web/app/components/rag-pipeline/components/input-field/editor/form/hooks.ts +++ b/web/app/components/rag-pipeline/components/input-field/editor/form/hooks.ts @@ -92,10 +92,11 @@ export const useConfigurations = (props: { }, [setFieldValue]) const handleVariableNameBlur = useCallback((value: string) => { - if (!value) + const label = getFieldValue('label') + if (!value || label) return setFieldValue('label', value) - }, [setFieldValue]) + }, [getFieldValue, setFieldValue]) const handleDisplayNameBlur = useCallback((value: string) => { if (!value)