Skip to content

Commit

Permalink
Fix marc key display when it's an array
Browse files Browse the repository at this point in the history
  • Loading branch information
f-osorio committed Nov 7, 2024
1 parent 907526c commit 1492e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panels/edit/modals/SubjectEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<div v-if="contextData.marcKey && contextData.marcKey.length>0">
<div class="modal-context-data-title">MARC Key:</div>
<ul>
<li class="modal-context-data-li" v-bind:key="contextData.marcKey">{{ contextData.marcKey }}</li>
<li class="modal-context-data-li" v-bind:key="contextData.marcKey">{{ Array.isArray(contextData.marcKey) ? contextData.marcKey[0]["@value"] : contextData.marcKey }}</li>
</ul>
</div>

Expand Down

0 comments on commit 1492e23

Please sign in to comment.