mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 12:55:52 +08:00
fix: reset schema and view on error in JSON schema generation
This commit is contained in:
parent
01d462d0f6
commit
0319e35b4d
@ -106,6 +106,8 @@ export const JsonSchemaGenerator: FC<JsonSchemaGeneratorProps> = ({
|
||||
type: 'error',
|
||||
message: error,
|
||||
})
|
||||
setSchema(null)
|
||||
setView(GeneratorView.promptEditor)
|
||||
return
|
||||
}
|
||||
return output
|
||||
|
Loading…
x
Reference in New Issue
Block a user