Skip to content

Commit

Permalink
UIIN-2084: Cannot add tags to Instance when unlinked preceding/succee…
Browse files Browse the repository at this point in the history
…ding titles present (#1729)

(cherry picked from commit 311074d)
  • Loading branch information
mariia-aloshyna committed Jul 26, 2022
1 parent 3725510 commit 2613b81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change history for ui-inventory

## [9.1.4] (IN PROGRESS)

* Fix Cannot add tags to Instance when unlinked preceding/succeeding titles present. Fixes UIIN-2084.

## [9.1.3](https://github.com/folio-org/ui-inventory/tree/v9.1.3) (2022-07-26)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v9.1.2...v9.1.3)

Expand Down Expand Up @@ -85,6 +89,9 @@ Inventory causes an error. Refs UIIN-2012.
* Adjust query parameters on the subject browse form. Refs UIIN-2075.
* Improve query when search by call number. Refs UIIN-2078.
* Rename and reorder search options for clarity, consistency. Fixes UIIN-2060, UIIN-2061.
* Browse contributors. Placeholder match does not look right in the contributor column. Refs UIIN-2079.
* Create Jest/RTL test for HoldingButtonsGroup.js. Refs UIEH-1746.
* Item Circulation history: Items that has not been checked in, have the first Service point in the list of service points assigned in the UI. Refs UIIN-2109

## [9.0.0](https://github.com/folio-org/ui-inventory/tree/v9.0.0) (2022-03-03)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v8.0.0...v9.0.0)
Expand Down
2 changes: 2 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ export const marshalTitles = (instance, identifierTypesByName, type) => {

instance[titleAttr] = (instance?.[titleAttr] ?? []).map((inst) => {
const {
id,
title,
hrid,
} = inst;
Expand All @@ -560,6 +561,7 @@ export const marshalTitles = (instance, identifierTypesByName, type) => {
{ [titleIdKey]: inst[titleIdKey] } :
// unconnected title
{
id,
title,
hrid,
identifiers,
Expand Down

0 comments on commit 2613b81

Please sign in to comment.