From 24388c2a642ccb53f09637da3a96f1d5fca51144 Mon Sep 17 00:00:00 2001 From: Mariia_Aloshyna Date: Mon, 13 Jan 2025 20:42:19 +0200 Subject: [PATCH] UIIN-3196: Fix '"location name" is undefined' error when trying to open instance details on ECS --- CHANGELOG.md | 1 + .../consortium/LimitedHoldingsList/LimitedHoldingsList.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93600d796..319981731 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * Fix infinite loading animation after cancel edit/duplicate or 'Save & Close' consortial holdings/items. Fixes UIIN-3167. * Remove hover-over text next to "Effective call number" on the Item record detail view. Refs UIIN-3131. * Change import of `exportToCsv` from `stripes-util` to `stripes-components`. Refs UIIN-3025. +* 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} />