Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Feb 29, 2024
1 parent 4e50cde commit bcd558a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ma-form/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const getComponentName = (formType) => {
return (`MaForm${toHump(formType)}`)
}

export const handleFlatteningColumns = (data, columns, isChildrenForm = undefined) => {
export const handleFlatteningColumns = (data, columns) => {
for (let key in data) {
const item = data[key]
if ( containerItems.includes(item.formType) ) {
Expand Down Expand Up @@ -92,7 +92,7 @@ export const handleFlatteningColumns = (data, columns, isChildrenForm = undefine
break
case 'children-form':
item.formList.map(list => list.parentDataIndex = item.dataIndex)
item.formList && handleFlatteningColumns(item.formList, columns, item.dataIndex, true)
item.formList && handleFlatteningColumns(item.formList, columns)
break
}
} else {
Expand Down

0 comments on commit bcd558a

Please sign in to comment.