Adds verification for metadata type object on mixin.

This commit is contained in:
Mateus Machado Luna 2019-10-17 15:45:52 -03:00
parent 3e3e7e0c97
commit 88ca241401
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export const filterTypeMixin = {
this.collectionId = this.filter.collection_id ? this.filter.collection_id : this.collectionId;
this.metadatumId = this.filter.metadatum.metadatum_id ? this.filter.metadatum.metadatum_id : this.metadatumId;
this.filterTypeOptions = this.filter.filter_type_options ? this.filter.filter_type_options : this.filterTypeOptions;
this.metadatumType = this.filter.metadatum.metadata_type_object.className ? this.filter.metadatum.metadata_type_object.className : this.metadatumType;
this.metadatumType = this.filter.metadatum.metadata_type_object && this.filter.metadatum.metadata_type_object.className ? this.filter.metadatum.metadata_type_object.className : this.metadatumType;
}
};