Skip to content

Commit

Permalink
fix: rerun report with storage id 0 (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsSmets authored Nov 5, 2024
1 parent 6d5b05f commit b0418f5
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 b0418f5

Please sign in to comment.