mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 13:55:54 +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',
|
type: 'error',
|
||||||
message: error,
|
message: error,
|
||||||
})
|
})
|
||||||
|
setSchema(null)
|
||||||
|
setView(GeneratorView.promptEditor)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
return output
|
return output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user