Skip to content

Commit 40d3157

Browse files
committed
Fix up build.
1 parent 0e61556 commit 40d3157

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app/public/public.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
export { 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';

src/app/public/table/table.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)