fix: switch of summoner with input field works again

This commit is contained in:
Valentin Kaelin 2019-12-28 23:49:53 +01:00
parent e00e872b67
commit aad62a3094
3 changed files with 3 additions and 1 deletions

View file

@ -136,6 +136,7 @@ export default {
watch: {
uri() {
console.log('route changed')
// console.log(this.$router.currentRoute)
this.updateCurrentRegion(this.region)
this.apiCall()
}

View file

@ -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

View file

@ -135,7 +135,7 @@ export default {
methods: {
fetchData() {
if (this.summonerFound) {
if (!this.overviewLoaded && this.summonerFound) {
console.log('FETCHING OVERVIEW')
this.overviewRequest()
}