From 639650a9e9b09eba4d5a54f44209b7becf1e589b Mon Sep 17 00:00:00 2001 From: Matthijs Smets Date: Tue, 5 Nov 2024 10:02:06 +0100 Subject: [PATCH] fix: rerun report with storage id 0 --- src/app/report/edit-display/edit-display.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/report/edit-display/edit-display.component.ts b/src/app/report/edit-display/edit-display.component.ts index 86dedd32..b092cdcc 100644 --- a/src/app/report/edit-display/edit-display.component.ts +++ b/src/app/report/edit-display/edit-display.component.ts @@ -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())) @@ -155,8 +157,6 @@ export class EditDisplayComponent implements OnChanges { this.debugTab.refreshTable({ displayToast: false }); }, }); - } else { - this.toastService.showDanger('Could not find report to rerun'); } }