Skip to content

Commit

Permalink
Release v12.0.10 (#2717)
Browse files Browse the repository at this point in the history
* UIIN-3196: Fix '"location name" is undefined' error when trying to open instance details on ECS

* UIIN-3198: Display Shared facet when user opens 'Move holdings/items to another instance' modal

* UIIN-3188: ECS - Allow 'Move holdings/items to another instance' if instance is shared

* Release v12.0.10

---------

Co-authored-by: Oleksandr Hladchenko1 <[email protected]>
  • Loading branch information
mariia-aloshyna and OleksandrHladchenko1 authored Jan 20, 2025
1 parent 9c5f20a commit 388c276
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change history for ui-inventory

## [12.0.10](https://github.com/folio-org/ui-inventory/tree/v12.0.10) (2025-01-20)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.9...v12.0.10)

* Fix '"location name" is undefined' error when trying to open instance details on ECS. Fixes UIIN-3196.
* Display `Shared` facet when user opens "Move holdings/items to another instance" modal. Refs UIIN-3198.
* ECS - Allow 'Move holdings/items to another instance' if instance is shared. Refs UIIN-3188.

## [12.0.9](https://github.com/folio-org/ui-inventory/tree/v12.0.9) (2025-01-13)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.8...v12.0.9)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/inventory",
"version": "12.0.9",
"version": "12.0.10",
"description": "Inventory manager",
"repository": "folio-org/ui-inventory",
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const LimitedHoldingsList = ({
instance={instance}
holding={holding}
tenantId={tenantId}
locationName={locationsById[holding.permanentLocationId].name}
locationName={locationsById[holding.permanentLocationId]?.name}
userTenantPermissions={userTenantPermissions}
pathToAccordionsState={pathToAccordionsState}
/>
Expand Down
3 changes: 1 addition & 2 deletions src/ViewInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ class ViewInstance extends React.Component {
);

const showQuickMarcMenuSection = isSourceMARC && (canCreateMARCHoldings || canEditMARCRecord || canDeriveMARCRecord);
const canMoveHoldingsItemsToAnotherInstance = (canMoveItems || canMoveHoldings) && !isShared;
const canMoveHoldingsItemsToAnotherInstance = canMoveItems || canMoveHoldings;

// the `identifier` is responsible for displaying the plugin `copyright-permissions-checker`
if (!showInventoryMenuSection && !showQuickMarcMenuSection && !identifier) {
Expand Down Expand Up @@ -1218,7 +1218,6 @@ class ViewInstance extends React.Component {
onSelect={this.selectInstance}
onClose={this.toggleFindInstancePlugin}
withTrigger={false}
suppressSharedFacet
/>
)
}
Expand Down

0 comments on commit 388c276

Please sign in to comment.