Fixes repository metadata not showing in some sections in item admin page.

This commit is contained in:
mateuswetah 2022-11-04 14:20:16 -03:00
parent ca102b83a2
commit d5174a1d2f
1 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,9 @@
</div>
<template v-if="metadatumList && Array.isArray(metadatumList)">
<div
v-for="(itemMetadatum, index) of metadatumList.filter(anItemMetadatum => anItemMetadatum.metadatum.metadata_section_id == metadataSection.id)"
v-for="(itemMetadatum, index) of metadatumList.filter(
anItemMetadatum => Array.isArray(anItemMetadatum.metadatum.metadata_section_id) ? anItemMetadatum.metadatum.metadata_section_id.indexOf(metadataSection.id) : anItemMetadatum.metadatum.metadata_section_id == metadataSection.id
)"
:key="index"
class="field">
<label class="label">{{ itemMetadatum.metadatum.name }}</label>