Skip to content

Commit

Permalink
Merge pull request #213 from swisstopo/bug/assets-212-sprache-in-deta…
Browse files Browse the repository at this point in the history
…ilansicht

Fix language display in Asset Detail view
  • Loading branch information
vej-ananas authored Jul 15, 2024
2 parents 6b65fef + 5bd4667 commit 951e12d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<th translate="search.language"></th>
<td>
<ul class="languages">
<li *ngFor="let language of assetDetail.languages">{{ language }}</li>
<li *ngFor="let language of assetDetail.languages">{{ language | valueItemName }}</li>
</ul>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,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]
Expand Down

0 comments on commit 951e12d

Please sign in to comment.