diff --git a/client/src/layouts/Default.vue b/client/src/layouts/Default.vue index c7577ec..b78bc95 100644 --- a/client/src/layouts/Default.vue +++ b/client/src/layouts/Default.vue @@ -136,6 +136,7 @@ export default { watch: { uri() { console.log('route changed') + // console.log(this.$router.currentRoute) this.updateCurrentRegion(this.region) this.apiCall() } diff --git a/client/src/store/modules/summoner.js b/client/src/store/modules/summoner.js index 89b1522..d8450b4 100644 --- a/client/src/store/modules/summoner.js +++ b/client/src/store/modules/summoner.js @@ -28,6 +28,7 @@ export const mutations = { BASIC_REQUEST(state) { state.basic.status = 'loading' state.champions.championsLoaded = false + state.overview.loaded = false }, CHAMPIONS_FOUND(state, { champions }) { state.champions.list = champions diff --git a/client/src/views/Summoner.vue b/client/src/views/Summoner.vue index 404a007..ab68f4e 100644 --- a/client/src/views/Summoner.vue +++ b/client/src/views/Summoner.vue @@ -135,7 +135,7 @@ export default { methods: { fetchData() { - if (this.summonerFound) { + if (!this.overviewLoaded && this.summonerFound) { console.log('FETCHING OVERVIEW') this.overviewRequest() }