diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx index c76d01cdce..202c5f1fc9 100644 --- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx +++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx @@ -106,6 +106,8 @@ export const JsonSchemaGenerator: FC = ({ type: 'error', message: error, }) + setSchema(null) + setView(GeneratorView.promptEditor) return } return output