Fixes undefined error on item edition form for Relationship type metadata.

This commit is contained in:
Mateus Machado Luna 2018-10-03 09:10:45 -03:00
parent faa8a6c55b
commit 3de8625baa
1 changed files with 3 additions and 2 deletions

View File

@ -35,8 +35,9 @@
}); });
} }
if( this.metadatum.metadatum.metadata_type_options if( this.metadatum.metadatum.metadata_type_options &&
&& this.metadatum.metadatum.metadata_type_options.search.length > 0){ this.metadatum.metadatum.metadata_type_options.search &&
this.metadatum.metadatum.metadata_type_options.search.length > 0){
axios.get('/collection/'+ collectionId +'/metadata?context=edit') axios.get('/collection/'+ collectionId +'/metadata?context=edit')
.then( res => { .then( res => {
for (let item of res.data) { for (let item of res.data) {