Skip to content

Commit

Permalink
migrated hook to vue 3 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ignapas committed Jul 3, 2024
1 parent 661c9f2 commit 3e6cbc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/about/projects/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<el-col :sm="24" :md="8" :lg="6">
<client-only>
<projects-facet-menu :anatomicalFocusFacets="projectsAnatomicalFocusFacets"
@projects-selections-changed="onFacetSelectionChange()" @hook:mounted="facetMenuMounted"
@projects-selections-changed="onFacetSelectionChange" @vue:mounted="facetMenuMounted"
ref="projectsFacetMenu" />
</client-only>
</el-col>
Expand Down Expand Up @@ -272,7 +272,7 @@ export default {
// Added route name check bc clicking on Data & Models header link was causing this to still fire after navigating to the data page
if (!this.$route.query.consortiaType && this.$route.name == 'about-projects') {
this.$router.push({
query: {consortiaType: this.consortiaType.id }
query: { consortiaType: this.consortiaType.id }
})
} else {
this.searchData = {
Expand All @@ -281,6 +281,7 @@ export default {
items: [],
total: 0
}
this.fetchConsortiaStyle(this.consortiaType.id)
this.fetchResults()
}
}
Expand Down

0 comments on commit 3e6cbc1

Please sign in to comment.