Skip to content

Commit

Permalink
fix: fix download button
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsSmets committed Dec 10, 2024
1 parent d4310c8 commit 80b9de6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/app/report/edit-display/edit-display.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}
Expand Down Expand Up @@ -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.');
},
});
Expand Down

0 comments on commit 80b9de6

Please sign in to comment.