Fixes undefined error on item edition form for Relationship type metadata.
This commit is contained in:
parent
faa8a6c55b
commit
3de8625baa
|
@ -35,8 +35,9 @@
|
|||
});
|
||||
}
|
||||
|
||||
if( this.metadatum.metadatum.metadata_type_options
|
||||
&& this.metadatum.metadatum.metadata_type_options.search.length > 0){
|
||||
if( this.metadatum.metadatum.metadata_type_options &&
|
||||
this.metadatum.metadatum.metadata_type_options.search &&
|
||||
this.metadatum.metadatum.metadata_type_options.search.length > 0){
|
||||
axios.get('/collection/'+ collectionId +'/metadata?context=edit')
|
||||
.then( res => {
|
||||
for (let item of res.data) {
|
||||
|
|
Loading…
Reference in New Issue