mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
fix(client): remove incorrect onchange in json component (#2079)
This commit is contained in:
parent
a3805e3b02
commit
331d6d57b2
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user