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,6 +559,7 @@ export default {
} }
}, },
columnsLength() { columnsLength() {
if (this.columns) {
let hiddenColLength = 0; let hiddenColLength = 0;
this.columns.forEach((column) => { this.columns.forEach((column) => {
@ -566,7 +567,10 @@ export default {
if (this.columnProp(column, 'hidden')) hiddenColLength++; if (this.columnProp(column, 'hidden')) hiddenColLength++;
}); });
return this.columns ? this.columns.length - hiddenColLength : 0; return this.columns.length - hiddenColLength;
}
return 0;
} }
}, },
components: { components: {