diff --git a/packages/core/forms/src/components/fields/FieldArray.vue b/packages/core/forms/src/components/fields/FieldArray.vue index d9d5c2f099..fb7ecf69fd 100644 --- a/packages/core/forms/src/components/fields/FieldArray.vue +++ b/packages/core/forms/src/components/fields/FieldArray.vue @@ -61,10 +61,11 @@ i === index ? val : item) + }, }, } diff --git a/packages/entities/entities-plugins/src/components/PluginEntityForm.vue b/packages/entities/entities-plugins/src/components/PluginEntityForm.vue index 6af9947c54..b6944036d0 100644 --- a/packages/entities/entities-plugins/src/components/PluginEntityForm.vue +++ b/packages/entities/entities-plugins/src/components/PluginEntityForm.vue @@ -407,6 +407,8 @@ const getModel = (): Record => { } else if (fieldSchemaValueType === 'array') { if ((!fieldValue || !fieldValue.length)) { fieldValue = fieldSchema.submitWhenNull ? null : [] + } else if (fieldSchema.inputAttributes?.type === 'number') { + fieldValue = fieldValue.map((value: string) => Number(value)) } }