fix init upload local file state
@@ -90,11 +90,13 @@ export class UploadComponent implements OnInit {
return file;
});
**/
- this.fileManager.listFiles(this.datasource.id)
+ if(this.uploadDataSetId) {
+ this.fileManager.listFiles(this.uploadDataSetId)
.subscribe(files => this.setFiles(files));
}
}
}
+ }
/**
* Cancels an upload and removes the path from the dataset.
