Skip to content

Commit

Permalink
UIQM-571 Wait for PUT request to finish after deriving before redirec…
Browse files Browse the repository at this point in the history
…ting to Inventory (#616)
  • Loading branch information
BogdanDenis authored Oct 31, 2023
1 parent da3e996 commit 45d0972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QuickMarcEditor/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const saveLinksToNewRecord = async (mutator, externalId, marcRecord) => {
// request derived MARC Bib record
const marcPromise = mutator.quickMarcEditMarcRecord.GET({ params: { externalId } });

Promise.all([instancePromise, marcPromise]).then(([{ _version }, derivedRecord]) => {
return Promise.all([instancePromise, marcPromise]).then(([{ _version }, derivedRecord]) => {
// copy linking data to new record
derivedRecord.fields = derivedRecord.fields.map((field) => {
// matching field from POST request
Expand Down

0 comments on commit 45d0972

Please sign in to comment.