diff options
Diffstat (limited to 'frontend/src/app/_elements/form-dataset')
-rw-r--r-- | frontend/src/app/_elements/form-dataset/form-dataset.component.ts | 8 |
1 files changed, 5 insertions, 3 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 163d1f18..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) => { |