Skip to content

Commit 8714ea7

Browse files
committed
serviceInfosDataSource is declared at line 23 but never initialized. When getServiceInfos() attempts to set this.serviceInfosDataSource.data at line 63, it will throw a runtime error: "Cannot set property 'data' of undefined".
1 parent 496e7d1 commit 8714ea7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Web/Admin.UI/src/app/components/monitor/link-health-check/link-health-check.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export class LinkHealthCheckComponent implements OnInit {
3333

3434
ngOnInit(): void {
3535
this.healthDataSource = new MatTableDataSource<ILinkServiceHealthSummary>();
36+
this.serviceInfosDataSource = new MatTableDataSource<IServiceInfoModel>();
3637
this.getHealthSummary();
3738
this.getServiceInfos();
3839
}

0 commit comments

Comments
 (0)