diff options
Diffstat (limited to 'frontend/src/app/_elements/form-dataset/form-dataset.component.ts')
-rw-r--r-- | frontend/src/app/_elements/form-dataset/form-dataset.component.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend/src/app/_elements/form-dataset/form-dataset.component.ts b/frontend/src/app/_elements/form-dataset/form-dataset.component.ts index 35d68526..1a29f74e 100644 --- a/frontend/src/app/_elements/form-dataset/form-dataset.component.ts +++ b/frontend/src/app/_elements/form-dataset/form-dataset.component.ts @@ -88,10 +88,12 @@ export class FormDatasetComponent { firstInput = false; update() { - - this.firstInput = true - if (this.files.length < 1) + this.firstInput = true; + if (this.files.length < 1){ + this.loadExisting(); return; + } + const fileReader = new FileReader(); fileReader.onload = (e) => { @@ -157,7 +159,6 @@ export class FormDatasetComponent { } return this.modelsService.uploadData(this.files[0]).subscribe((file) => { - //console.log('ADD MODEL: STEP 2 - ADD DATASET WITH FILE ID ' + file._id); this.dataset._id = ""; this.dataset.fileId = file._id; this.dataset.uploaderId = shared.userId; |