From 3d4c969ea031112f1542ed3b1d3cf6626536c56f Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Sat, 8 Jan 2022 01:04:49 +0100 Subject: [PATCH] fix(champions): re-apply current filters on most played check --- client/src/components/Summoner/Champions/ChampionsTable.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/components/Summoner/Champions/ChampionsTable.vue b/client/src/components/Summoner/Champions/ChampionsTable.vue index 46ebf8f..7ce06ea 100644 --- a/client/src/components/Summoner/Champions/ChampionsTable.vue +++ b/client/src/components/Summoner/Champions/ChampionsTable.vue @@ -233,6 +233,12 @@ export default { watch: { champions() { this.updateChampionsList() + }, + + onlyMostPlayed() { + // Re-apply the current sorting + this.order *= -1 + this.sortBy(this.sortProps) } },