Skip to content

Commit

Permalink
fix: report component throws error if no report is configured
Browse files Browse the repository at this point in the history
fixes: #984
  • Loading branch information
Schottkyc137 authored Dec 8, 2021
1 parent c88eba1 commit 0ad0488
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ReportingComponent implements OnInit {
ngOnInit() {
this.activatedRoute.data.subscribe(
(data: RouteData<ReportingComponentConfig>) => {
this.availableReports = data.config.reports;
this.availableReports = data.config?.reports;
if (this.availableReports?.length === 1) {
this.selectedReport = this.availableReports[0];
}
Expand Down

0 comments on commit 0ad0488

Please sign in to comment.