From 80b9de6f274f5fc6ecd6dc416630449999dad450 Mon Sep 17 00:00:00 2001 From: matthijssmets Date: Tue, 10 Dec 2024 15:37:39 +0100 Subject: [PATCH] fix: fix download button --- src/app/report/edit-display/edit-display.component.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/report/edit-display/edit-display.component.ts b/src/app/report/edit-display/edit-display.component.ts index b092cdcc..239f276a 100644 --- a/src/app/report/edit-display/edit-display.component.ts +++ b/src/app/report/edit-display/edit-display.component.ts @@ -169,11 +169,11 @@ export class EditDisplayComponent implements OnChanges { downloadReport(exportBinary: boolean, exportXML: boolean): void { const node: Report | Checkpoint = this.selectedNode!; - let queryString: string; + let queryString: string = 'id='; if (ReportUtil.isReport(node)) { - queryString = String(node.storageId); + queryString += String(node.storageId); } else if (ReportUtil.isCheckPoint(node)) { - queryString = node.uid.split('#')[0]; + queryString += node.uid.split('#')[0]; } else { queryString = ''; } @@ -305,7 +305,10 @@ export class EditDisplayComponent implements OnChanges { this.selectedNode = response.report; } this.disableEditing(); - this.debugTab.refreshAll({ reportIds: [+storageId], displayToast: false }); + this.debugTab.refreshAll({ + reportIds: [+storageId], + displayToast: false, + }); this.toastService.showSuccess('Report updated successfully.'); }, });