fix(client): remove incorrect onchange in json component (#2079)

This commit is contained in:
Junyi 2023-06-19 17:58:38 +07:00 committed by GitHub
parent a3805e3b02
commit 331d6d57b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,6 @@ export const Json = React.forwardRef<typeof Input.TextArea, JSONTextAreaProps>(
JSON.parse(ev.target.value);
}
field.setFeedback({});
onChange?.(v);
} catch (err) {
field.setFeedback({
type: 'error',
@ -55,7 +54,6 @@ export const Json = React.forwardRef<typeof Input.TextArea, JSONTextAreaProps>(
field.setFeedback({});
onChange?.(v);
} catch (err) {
onChange?.(ev);
field.setFeedback({
type: 'error',
code: 'JSONSyntaxError',