Skip to content

Commit 7592e4b

Browse files
committed
added empty initialization of matdatasource
1 parent d21214c commit 7592e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/app/dashboard/table-all/table-all.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class TableAllComponent implements OnInit {
6666

6767
displayedColumns = ['ID', 'name', 'host', 'portNumber', 'instanceState', 'action', 'Details'];
6868
columnsToDisplay: string[] = ['dockerId', 'labels'];
69-
dataSource: MatTableDataSource<Instance>;
69+
dataSource: MatTableDataSource<Instance> = new MatTableDataSource<Instance>(this.dataArray);
7070
data = new MatTableDataSource<{dockerId: string, labels: string[]}>();
7171
dialogResult: string;
7272
expandedElement: Instance;

0 commit comments

Comments
 (0)