Skip to content

Commit

Permalink
AUS-4203
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvpeters committed Jun 19, 2024
1 parent c357e0e commit c1bae8c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/app/modalwindow/querier/querier.modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class QuerierModalComponent implements OnInit, AfterViewInit {
public getNVCL() {

if (!this.imScDoButtonsEnabled) { return; }

// check if have already loaded
if (this.loadedDataset.includes(this.currentDoc.key)) {
this.nvclIndex = this.loadedDataset.indexOf(this.currentDoc.key);
Expand Down Expand Up @@ -405,15 +405,20 @@ export class QuerierModalComponent implements OnInit, AfterViewInit {
const logs = this.datasetScalars[datasetId];
const logIds = [];

for (const log of logs) {
if (log.value) {
logIds.push(log.logId);

if (this.isIterable(logs)) {
for (const log of logs) {
if (log.value) {
logIds.push(log.logId);
}
}
}

if (logIds.length <= 0) {
alert('No logs selected');
return;
}

this.nvclService.getNVCL2_0_CSVDownload(this.currentDoc.onlineResource.url, logIds).
subscribe(response => {
const blob = new Blob([response], { type: 'application/csv' });
Expand Down

0 comments on commit c1bae8c

Please sign in to comment.