Fixes error of undefined metadatm in Items List.

This commit is contained in:
Mateus Machado Luna 2018-08-17 13:45:50 -03:00
parent 286cc95047
commit de854bc036
2 changed files with 6 additions and 6 deletions

View File

@ -837,10 +837,10 @@
// Updates Search // Updates Search
this.$eventBusSearch.addFetchOnly({ this.$eventBusSearch.addFetchOnly({
'0': thumbnailMetadatum.display ? 'thumbnail' : null, '0': thumbnailMetadatum != undefined && thumbnailMetadatum.display ? 'thumbnail' : null,
'meta': fetchOnlyMetadatumIds, 'meta': fetchOnlyMetadatumIds,
'1': creationDateMetadatum.display ? 'creation_date' : null, '1': creationDateMetadatum != undefined && creationDateMetadatum.display ? 'creation_date' : null,
'2': authorNameMetadatum.display ? 'author_name': null, '2': authorNameMetadatum != undefined && authorNameMetadatum.display ? 'author_name': null,
'3': (this.isRepositoryLevel ? 'title' : null), '3': (this.isRepositoryLevel ? 'title' : null),
'4': (this.isRepositoryLevel && descriptionMetadatum.display ? 'description' : null), '4': (this.isRepositoryLevel && descriptionMetadatum.display ? 'description' : null),
}); });

View File

@ -839,10 +839,10 @@
// Updates Search // Updates Search
this.$eventBusSearch.addFetchOnly({ this.$eventBusSearch.addFetchOnly({
'0': thumbnailMetadatum.display ? 'thumbnail' : null, '0': thumbnailMetadatum != undefined && thumbnailMetadatum.display ? 'thumbnail' : null,
'meta': fetchOnlyMetadatumIds, 'meta': fetchOnlyMetadatumIds,
'1': creationDateMetadatum.display ? 'creation_date' : null, '1': creationDateMetadatum != undefined && creationDateMetadatum.display ? 'creation_date' : null,
'2': authorNameMetadatum.display ? 'author_name': null, '2': authorNameMetadatum != undefined && authorNameMetadatum.display ? 'author_name': null,
'3': (this.isRepositoryLevel ? 'title' : null), '3': (this.isRepositoryLevel ? 'title' : null),
'4': (this.isRepositoryLevel && descriptionMetadatum.display ? 'description' : null), '4': (this.isRepositoryLevel && descriptionMetadatum.display ? 'description' : null),
}); });