Skip to content

Commit

Permalink
fix: upload-file-step doesn't load a dataset automaticaly
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Apr 24, 2024
1 parent 65cdbb6 commit 46157d2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export class UploadFileStepComponent implements OnInit {
this.setupDatasetSelect();
this.step = this.route.snapshot.data.step;
this.importData = this.importProcessService.getImportData();
if (this.importData === null) {
this.uploadForm.patchValue({ dataset: +this.route.snapshot.queryParams['datasetId'] });
} else {
if (this.importData) {
this.uploadForm.patchValue({ dataset: this.importData.id_dataset });
this.fileName = this.importData.full_file_name;
}
Expand Down

0 comments on commit 46157d2

Please sign in to comment.