diff --git a/CHANGELOG.md b/CHANGELOG.md index bcad3b699..b35adebbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * Change import of `exportToCsv` from `stripes-util` to `stripes-components`. Refs UIIN-3025. * 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. +* Fix '"location name" is undefined' error when trying to open instance details on ECS. Fixes UIIN-3196. ## [12.0.8](https://github.com/folio-org/ui-inventory/tree/v12.0.8) (2024-12-24) [Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.7...v12.0.8) diff --git a/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js b/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js index e90856712..fe22e07ce 100644 --- a/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js +++ b/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js @@ -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} />