Skip to content

Commit e2d7e23

Browse files
committed
Skip validation on json editing
1 parent 5165cd2 commit e2d7e23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/client/src/pages/CollectionForm/EditForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export function EditForm(props: {
5454
return onSubmit(exitData, actions);
5555
}}
5656
validate={(values) => {
57+
if (view === 'json') return;
58+
5759
const [, error] = validatePluginsFieldsData(plugins, values);
5860
if (error) return error;
5961
}}

0 commit comments

Comments
 (0)