File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22export { TableComponent } from './table/table.component' ;
33
44// Pipes
5- // export { DateTimePipe } from './pipes';
6-
7- // Utilities
8- // export * from './utilities';
5+ // export * from './pipes';
96
107// Types
118// export type { } from './types';
9+
10+ // Utilities
11+ // export * from './utilities';
Original file line number Diff line number Diff line change @@ -115,13 +115,13 @@ export class TableComponent<T extends object & { id: number }>
115115
116116 @Input ( { required : true } )
117117 public set data ( values : readonly T [ ] | null | undefined ) {
118- if ( values === null ) {
119- this . dataSubject . next ( values ) ;
118+ if ( values === null || values === undefined ) {
119+ this . dataSubject . next ( null ) ;
120120 return ;
121121 }
122122
123123 this . dataSubject . next (
124- new MatTableDataSource < T , MatPaginator > ( Array . from ( values ?? [ ] ) ) ,
124+ new MatTableDataSource < T , MatPaginator > ( Array . from ( values ) ) ,
125125 ) ;
126126 }
127127
You can’t perform that action at this time.
0 commit comments