Finishes merging from endpoint facets branch

This commit is contained in:
Mateus Machado Luna 2018-09-11 10:23:09 -03:00
parent ef29a41f77
commit 2938afc6c0
3 changed files with 5 additions and 7 deletions

View File

@ -449,11 +449,11 @@
collection_id: this.collection_id,
terms: this.selected
});
for (let selected of this.selected) {
for(let i in this.finderColumns){
let valueIndex = this.finderColumns[i].findIndex(option => option.value == selected);
if (valueIndex >= 0) {
selectedOptions.push(this.finderColumns[i][valueIndex]);
}

View File

@ -108,7 +108,6 @@
this.options.push(item);
}
if ( this.options ){
let hasChildren = false;
@ -183,8 +182,8 @@
onlyLabels.push(res.data[0].label);
this.options.push({
isChild: true,
name: res.data[0].label,
id: res.data[0].value
label: res.data[0].label,
value: res.data[0].value
})
})
.catch(error => {

View File

@ -28,8 +28,7 @@ export default {
});
this.$on('sendValuesToTags', data => {
// console.log(data)
this.$store.dispatch('search/addFilterTag', data);
this.$store.dispatch('search/addFilterTag', data);
});
this.$root.$on('closeAdvancedSearch', () => {