Skip to content

Commit

Permalink
Merge pull request #15 from hlerenow/bugfix/fixedNodeUpdateSchemaSave…
Browse files Browse the repository at this point in the history
…NotSuccess

fix: 🐛 fixed node schema can not save success problem
  • Loading branch information
lin-mt authored Jan 4, 2025
2 parents 87950d8 + c4aaa03 commit a4de848
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/JsonSchemaEditor/SchemaItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,11 @@ function SchemaItem(props: SchemaItemProps) {
advancedForm
.validateFields()
.then((values) => {
changeSchema(namePath, { ...schema, ...values }, propertyName);
changeSchema(
namePath,
{ ...schema, ...formSchema, ...values },
propertyName,
);
setAdvancedModal(!advancedModal);
})
.catch((errorInfo) => {
Expand Down

0 comments on commit a4de848

Please sign in to comment.