From 5bd4667dbf86965cec993a201f259a01c15a35ea Mon Sep 17 00:00:00 2001 From: Jannic Veith Date: Thu, 11 Jul 2024 14:29:27 +0200 Subject: [PATCH] Fix language display --- .../asset-search-detail/asset-search-detail.component.html | 2 +- .../src/lib/state/asset-search/asset-search.selector.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/asset-viewer/src/lib/components/asset-search-detail/asset-search-detail.component.html b/libs/asset-viewer/src/lib/components/asset-search-detail/asset-search-detail.component.html index 5aa483e5..2d0f6cad 100644 --- a/libs/asset-viewer/src/lib/components/asset-search-detail/asset-search-detail.component.html +++ b/libs/asset-viewer/src/lib/components/asset-search-detail/asset-search-detail.component.html @@ -128,7 +128,7 @@ diff --git a/libs/asset-viewer/src/lib/state/asset-search/asset-search.selector.ts b/libs/asset-viewer/src/lib/state/asset-search/asset-search.selector.ts index aeca132a..748b3ac6 100644 --- a/libs/asset-viewer/src/lib/state/asset-search/asset-search.selector.ts +++ b/libs/asset-viewer/src/lib/state/asset-search/asset-search.selector.ts @@ -317,7 +317,7 @@ const makeAssetDetailVMNew = (referenceData: ReferenceData, assetDetail: AssetEd return { role: contact.role, contact: referenceData.contacts[contact.contactId] }; }) .map((contact) => makeAssetDetailContactVM(referenceData, contact)), - languages: assetLanguages, + languages: assetLanguages.map(({ languageItemCode: code }) => referenceData.languageItems[code]), manCatLabels: manCatLabelRefs.map((manCatLabelItemCode) => referenceData.manCatLabelItems[manCatLabelItemCode]), assetFormatCompositions: assetFormatCompositions.map( (assetFormatItemCode) => referenceData.assetFormatItems[assetFormatItemCode]