diff --git a/src/store/modules/users.js b/src/store/modules/users.js index 6ccbc75b7..174b56e2e 100644 --- a/src/store/modules/users.js +++ b/src/store/modules/users.js @@ -93,11 +93,6 @@ const actions = { modifyOrg({ commit, state }, org) { commit('MODIFY_ORG', org) }, - setUsingOrgs({ commit, state, rootGetters }) { - const viewName = rootGetters.currentViewRoute.name - const usingOrgs = state[`${viewName}Orgs`] || [] - commit('SET_USING_ORGS', usingOrgs) - }, // user logout logout({ commit, state }) { return new Promise((resolve, reject) => { @@ -118,7 +113,7 @@ const actions = { commit('SET_MFA_VERIFY') }, changeToView({ commit }, viewName) { - const usingOrgs = state[`${viewName}Orgs`] || [] + const usingOrgs = state[`${viewName}Orgs`] || state.consoleOrgs Vue.$log.debug('Set using orgs: ', viewName, usingOrgs) commit('SET_USING_ORGS', usingOrgs) } diff --git a/src/utils/startup.js b/src/utils/startup.js index 7282bde08..bd18a5167 100644 --- a/src/utils/startup.js +++ b/src/utils/startup.js @@ -61,7 +61,7 @@ async function changeCurrentOrgIfNeed({ to, from, next }) { const usingOrgs = store.getters.usingOrgs if (!usingOrgs || usingOrgs.length === 0) { - Vue.$log.error('No using orgs, return: ', usingOrgs) + Vue.$log.debug('No using orgs, return: ', usingOrgs) return } await refreshCurrentOrg()