Fixed #5005 - BodyRow: Cannot read propertie of null (reading 'forEach)
parent
b40135fa8c
commit
8beeab367c
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue