Skip to content

Commit

Permalink
fetch newest upload definitions instead of depending on context
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 committed Oct 5, 2023
1 parent 2986bb7 commit e460345
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/UploadingJobsDisplay/UploadingJobsDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class UploadingJobsDisplay extends Component {
actionMenuItems: ['run'],
};

async componentDidMount() {
componentDidMount() {
this.mounted = true;
this.fileRemovalMap = {
[FILE_STATUSES.DELETING]: this.deleteFileAPI,
Expand All @@ -100,8 +100,7 @@ export class UploadingJobsDisplay extends Component {
this.setPageLeaveHandler();
this.mapFilesToState();
if (this.state.configurationLoaded) {
await this.uploadJobs();
this.updateJobProfilesComponent();
this.handleUploadJobs();
}
}

Expand Down Expand Up @@ -245,8 +244,9 @@ export class UploadingJobsDisplay extends Component {
}
}

multipartUpload() {
const { uploadDefinition } = this.context;
multipartUpload = async () => {
const { updateUploadDefinition } = this.context;
const uploadDefinition = await updateUploadDefinition();
const { files } = this.state;
const { okapiKy, intl } = this.props;
this.currentFileUploadXhr = new MultipartUploader(
Expand Down

0 comments on commit e460345

Please sign in to comment.