Skip to content

Commit

Permalink
fix: don't try to use route params when vuex.syncRouteParams
Browse files Browse the repository at this point in the history
Resolves #644
  • Loading branch information
rchl committed Mar 29, 2020
1 parent 94ab501 commit 1bdf320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function switchLocalePath (locale) {
const { route, store } = this
const { params, ...routeCopy } = route
let langSwitchParams = {}
if (vuex && store) {
if (vuex && vuex.syncRouteParams && store) {
langSwitchParams = store.getters[`${vuex.moduleName}/localeRouteParams`](locale)
}
const baseRoute = Object.assign({}, routeCopy, {
Expand Down

0 comments on commit 1bdf320

Please sign in to comment.