Fixes repository metadata not being displayed in some cases of metadata sections.

This commit is contained in:
mateuswetah 2022-11-04 11:35:35 -03:00
parent 263de085ca
commit ca102b83a2
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@
<template v-for="(itemMetadatum, index) of metadatumList">
<tainacan-form-item
v-if="itemMetadatum.metadatum.metadata_section_id == metadataSection.id"
v-if="Array.isArray(itemMetadatum.metadatum.metadata_section_id) ? itemMetadatum.metadatum.metadata_section_id.indexOf(metadata_section_id) : itemMetadatum.metadatum.metadata_section_id == metadataSection.id"
:key="index"
:id="'metadatum-index--' + index"
v-show="(!showOnlyRequiredMetadata || itemMetadatum.metadatum.required === 'yes') && (metadataNameFilterString == '' || filterByMetadatumName(itemMetadatum))"