-
Notifications
You must be signed in to change notification settings - Fork 2
Description
The problem is in the initialization of the uploadFilesOptions.url in the my-dspace-new-submission.component.ts, check in the code: https://github.com/dataquest-dev/dspace-angular/blob/dtq-dev/src/app/my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.ts#L74
Upstream:
The uploadFilesOptions.url is assigned in the this.halService.getEndpoint('workspaceitems').pipe(first()).subscribe... code and then the html tries to render ds-uploader component.
Our instance:
The html tries to render ds-uploader before the uploadFilesOptions.url is assigned in the this.halService.getEndpoint('workspaceitems').pipe(first()).subscribe... code. That throws an exception because the uploadFilesOptions.url cannot be undefined in the ds-uploader init method.