Merge branch 'release/0.19' of github.com:tainacan/tainacan into release/0.19

This commit is contained in:
vnmedeiros 2022-08-18 15:43:11 -03:00
commit 464f1c0b42
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export default {
const metadataSections = this.getMetadataSections();
if (Array.isArray(metadataSections) && metadataSections.length) {
const totalMetadata = metadataSections.reduce((total, aMetadataSection) => total + parseInt(aMetadataSection.metadata_object_list.length), 0);
const totalMetadata = metadataSections.reduce((total, aMetadataSection) => (aMetadataSection.metadata_object_list ? (total + parseInt(aMetadataSection.metadata_object_list.length)) : 0), 0);
label = this.$i18n.getWithVariables('label_metadata_%s_and_sections_%s', [totalMetadata, metadataSections.length]);
}