fix: forgot to check length in one spot

This commit is contained in:
Valentin Kaelin 2022-01-31 23:09:39 +01:00
parent 9af2dd90c3
commit 4fb7c4d6da

View file

@ -87,7 +87,9 @@ export const mutations = {
OVERVIEW_FOUND(state, infos) {
state.basic.recentActivity = infos.stats.recentActivity
state.overview.matches = infos.matches
if (infos.matches.length > 0) {
state.overview.lastMatchId = infos.matches[infos.matches.length - 1].matchId
}
state.overview.stats = infos.stats
state.overview.loaded = true
state.records.recordsLoaded = false