Fixing an issue with Cypress tests.
This commit is contained in:
parent
a6db41aff5
commit
ae904c79d0
|
@ -91,7 +91,7 @@
|
||||||
if (hideAutocolumns && value.autocolumn) {
|
if (hideAutocolumns && value.autocolumn) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
result.push({
|
let config = {
|
||||||
headerCheckboxSelection: false,
|
headerCheckboxSelection: false,
|
||||||
headerComponent: TableHeader,
|
headerComponent: TableHeader,
|
||||||
headerComponentParams: {
|
headerComponentParams: {
|
||||||
|
@ -100,7 +100,6 @@
|
||||||
},
|
},
|
||||||
headerName: value.displayFieldName || key,
|
headerName: value.displayFieldName || key,
|
||||||
field: key,
|
field: key,
|
||||||
autocolumn: !!value.autocolumn,
|
|
||||||
sortable: true,
|
sortable: true,
|
||||||
cellRenderer: getRenderer({
|
cellRenderer: getRenderer({
|
||||||
schema: schema[key],
|
schema: schema[key],
|
||||||
|
@ -113,12 +112,15 @@
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
})
|
|
||||||
}
|
}
|
||||||
// sort auto-columns to the end if they are present
|
// sort auto-columns to the end if they are present
|
||||||
|
if (value.autocolumn) {
|
||||||
|
result.push(config)
|
||||||
|
} else {
|
||||||
|
result.unshift(config)
|
||||||
|
}
|
||||||
|
}
|
||||||
columnDefs = result
|
columnDefs = result
|
||||||
.filter(col => !col.autocolumn)
|
|
||||||
.concat(result.filter(col => col.autocolumn))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectRelationship(row, fieldName) {
|
function selectRelationship(row, fieldName) {
|
||||||
|
|
Loading…
Reference in New Issue