Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(menu): avoid multiple Algolia calls when created
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Oct 30, 2017
1 parent 613ee78 commit f1ac0a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
},
created() {
this.searchStore.stop();
this.searchStore.maxValuesPerFacet = this.limit;
this.searchStore.addFacet(
{
Expand All @@ -78,6 +79,8 @@
},
FACET_TREE
);
this.searchStore.start();
this.searchStore.refresh();
},
destroyed() {
Expand Down

0 comments on commit f1ac0a7

Please sign in to comment.