fix: visual bug of the sidebar in overview tab

This commit is contained in:
Valentin Kaelin 2020-03-28 22:47:59 +01:00
parent a819a86400
commit d7702e2175
2 changed files with 3 additions and 0 deletions

View file

@ -41,6 +41,7 @@ export const actions = {
// If the ranks of the players are not yet known // If the ranks of the players are not yet known
if (resp.data.matchDetails.blueTeam.players[0].rank === undefined) { if (resp.data.matchDetails.blueTeam.players[0].rank === undefined) {
const ranks = await axios(({ url: 'match/details/ranks', data: { gameId, region }, method: 'POST' })).catch(() => { }) const ranks = await axios(({ url: 'match/details/ranks', data: { gameId, region }, method: 'POST' })).catch(() => { })
if (!ranks) return
console.log('--- RANK OF MATCH DETAILS ---') console.log('--- RANK OF MATCH DETAILS ---')
console.log(ranks.data) console.log(ranks.data)
commit('MATCH_RANKS_FOUND', { gameId, ...ranks.data }) commit('MATCH_RANKS_FOUND', { gameId, ...ranks.data })

View file

@ -78,6 +78,8 @@ export default {
}, },
summonerFound() { summonerFound() {
this.fetchData() this.fetchData()
// Set default value when the summoner changes
this.fixedSidebar = false
} }
}, },