This commit is contained in:
Jan Prochazka
2022-12-09 08:47:26 +01:00
parent f7bd12881e
commit 9d6fe2460f

View File

@@ -10,10 +10,10 @@ export default class FreeTableGrider extends Grider {
this.model = modelState && modelState.value; this.model = modelState && modelState.value;
} }
getRowData(index: any) { getRowData(index: any) {
return this.model.rows[index]; return this.model.rows?.[index];
} }
get rowCount() { get rowCount() {
return this.model.rows.length; return this.model.rows?.length;
} }
get currentModel(): FreeTableModel { get currentModel(): FreeTableModel {
return this.batchModel || this.model; return this.batchModel || this.model;