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