mn-angular-lib 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4251,7 +4251,7 @@ class MnTable {
|
|
|
4251
4251
|
const term = filterValue.toLowerCase();
|
|
4252
4252
|
items = items.filter(row => {
|
|
4253
4253
|
const cellValue = typeof col.cell === 'function' ? col.cell(row) : '';
|
|
4254
|
-
return cellValue.toLowerCase().includes(term);
|
|
4254
|
+
return (cellValue ?? '').toLowerCase().includes(term);
|
|
4255
4255
|
});
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
@@ -4326,7 +4326,7 @@ class MnTable {
|
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|
|
4328
4328
|
emitSelection() {
|
|
4329
|
-
const rows = this.dataSource.dataRows.value.filter(r => this.selectedIds.has(this.dataSource.getID(r)));
|
|
4329
|
+
const rows = (this.dataSource.dataRows.value ?? []).filter(r => this.selectedIds.has(this.dataSource.getID(r)));
|
|
4330
4330
|
this.dataSource.selectedRows?.next(rows);
|
|
4331
4331
|
this.selectionChange.emit(rows);
|
|
4332
4332
|
}
|