This commit is contained in:
VLE2FE 2020-08-10 13:03:51 +02:00
parent 424111faf0
commit c072df74e5

View File

@ -198,9 +198,6 @@ export class SamplesComponent implements OnInit {
query.push('page-size=' + this.filters.pageSize); query.push('page-size=' + this.filters.pageSize);
} }
query.push('sort=' + this.filters.sort); query.push('sort=' + this.filters.sort);
if (options.csv) {
query.push('output=csv');
}
if (options.export) { if (options.export) {
query.push('key=' + this.d.d.userKey.key); query.push('key=' + this.d.d.userKey.key);
} }
@ -230,7 +227,10 @@ export class SamplesComponent implements OnInit {
}); });
} }
else { else {
if (this.downloadFlatten) { if (options.csv) {
query.push('output=csv');
}
else if (this.downloadFlatten) {
query.push('output=flatten'); query.push('output=flatten');
} }
if (this.downloadSpectra) { if (this.downloadSpectra) {