mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: visual bug of the sidebar in overview tab
This commit is contained in:
parent
a819a86400
commit
d7702e2175
2 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ export const actions = {
|
|||
// If the ranks of the players are not yet known
|
||||
if (resp.data.matchDetails.blueTeam.players[0].rank === undefined) {
|
||||
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(ranks.data)
|
||||
commit('MATCH_RANKS_FOUND', { gameId, ...ranks.data })
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@ export default {
|
|||
},
|
||||
summonerFound() {
|
||||
this.fetchData()
|
||||
// Set default value when the summoner changes
|
||||
this.fixedSidebar = false
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue