Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix for failing linking to project search #147

Merged
merged 11 commits into from
Jul 11, 2024
12 changes: 4 additions & 8 deletions pages/about/projects/index.vue
Original file line number Diff line number Diff line change
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 @@ -291,20 +291,17 @@ export default {
handler: function () {
this.searchQuery = this.$route.query.search
this.fetchResults()
},
immediate: true
}
},
'$route.query.projectsSort': {
handler: function (option) {
this.fetchResults()
},
immediate: true
}
},
'$route.query.selectedProjectsAnatomicalFocusIds': {
handler: function (option) {
this.fetchResults()
},
immediate: true
}
},
},

Expand All @@ -321,7 +318,6 @@ export default {
limit: Number(this.$route.query.limit || this.searchData.limit),
search: this.$route.query.search || ''
}

this.searchData = { ...this.searchData, ...queryParams }
}
if (window.innerWidth <= 768) this.titleColumnWidth = 150
Expand Down
Loading