We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 672eeb6 commit 0c2f8ecCopy full SHA for 0c2f8ec
components/modal/createModel.vue
@@ -42,10 +42,15 @@
42
};
43
44
const onSubmit = form.handleSubmit(async (values) => {
45
+ const data = values.schema.map((sch) => ({
46
+ name: sch.name,
47
+ type: sch.type,
48
+ }));
49
+
50
await model.create(
51
{
52
name: values.name,
- schema: values.schema,
53
+ schema: data,
54
},
55
56
onSuccess: () => {
components/modal/editModel.vue
@@ -49,10 +49,15 @@
57
await model.update(
58
59
60
61
62
63
onSuccess: (updated) => {
0 commit comments