Skip to content

Commit

Permalink
fix: rerun report with storage id 0
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsSmets committed Nov 5, 2024
1 parent 216cc7b commit 639650a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/report/edit-display/edit-display.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ export class EditDisplayComponent implements OnChanges {
} else if (ReportUtil.isCheckPoint(node)) {
reportId = ReportUtil.getStorageIdFromUid(node.uid);
}
if (reportId) {
if (reportId == undefined) {
this.toastService.showDanger('Could not find report to rerun');
} else {
this.httpService
.runReport(this.currentView.storageName, reportId)
.pipe(catchError(this.errorHandler.handleError()))
Expand All @@ -155,8 +157,6 @@ export class EditDisplayComponent implements OnChanges {
this.debugTab.refreshTable({ displayToast: false });
},
});
} else {
this.toastService.showDanger('Could not find report to rerun');
}
}

Expand Down

0 comments on commit 639650a

Please sign in to comment.