diff --git a/src/layout/components/GenericUpdateFormDialog/index.vue b/src/layout/components/GenericUpdateFormDialog/index.vue index 66bd24a49..45ee1e6cf 100644 --- a/src/layout/components/GenericUpdateFormDialog/index.vue +++ b/src/layout/components/GenericUpdateFormDialog/index.vue @@ -97,10 +97,10 @@ export default { getDefaultFormSetting() { const vm = this return { - submitMethod: () => 'post', + submitMethod: () => 'patch', cleanFormValue: function(value) { const filterValue = {} - Object.keys(value).filter((key) => vm.checkedFields.includes(key)).forEach((key) => { + Object.keys(value).filter((key) => vm.checkedFields?.includes(key)).forEach((key) => { filterValue[key] = value[key] }) const formValue = []