Skip to content

The uploader component renders differently than in upstream #923

@milanmajchrak

Description

@milanmajchrak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions