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 committed Nov 3, 2023
1 parent 8ccb7e9 commit 05ad988
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change history for ui-quick-marc

## [7.0.3] (IN PROGRESS)

* [UIQM-571](https://issues.folio.org/browse/UIQM-571) Added `marc-records-editor.item.put` to Derive and Create Bib permissions to fix issue with broken links after deriving or creating a record.


## [7.0.2](https://github.com/folio-org/ui-quick-marc/tree/v7.0.2) (2023-10-27)

* [UIQM-571](https://issues.folio.org/browse/UIQM-571) Added `marc-records-editor.item.put` to Derive and Create Bib permissions to fix issue with broken links after deriving or creating a record.
Expand Down
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 05ad988

Please sign in to comment.