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'); } } diff --git a/src/app/shared/components/toast/toast.component.html b/src/app/shared/components/toast/toast.component.html index d8162300..a99ae8e1 100644 --- a/src/app/shared/components/toast/toast.component.html +++ b/src/app/shared/components/toast/toast.component.html @@ -5,6 +5,7 @@
@@ -23,16 +24,16 @@ } }
{{ toast.message }}
- @if (toast.detailed) { - -
- Click to see a more detailed description -
- } @if (toast.toastCallback) { }
+ @if (toast.detailed) { + +
+ Click to see a more detailed description +
+ }
} @@ -40,14 +41,14 @@