Fixed #5005 - BodyRow: Cannot read propertie of null (reading 'forEach)

pull/5013/head
mertsincan 2023-12-30 01:48:31 +00:00
parent b40135fa8c
commit 8beeab367c
1 changed files with 10 additions and 6 deletions

View File

@ -559,14 +559,18 @@ export default {
}
},
columnsLength() {
let hiddenColLength = 0;
if (this.columns) {
let hiddenColLength = 0;
this.columns.forEach((column) => {
if (this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
if (this.columnProp(column, 'hidden')) hiddenColLength++;
});
this.columns.forEach((column) => {
if (this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
if (this.columnProp(column, 'hidden')) hiddenColLength++;
});
return this.columns ? this.columns.length - hiddenColLength : 0;
return this.columns.length - hiddenColLength;
}
return 0;
}
},
components: {