From 113146573365355c050b7ffd06896781d3eb04b1 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 15 Nov 2024 16:26:09 -0600 Subject: [PATCH] Reset data on watcher for fielding table --- src/components/TeamFieldingTable.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/TeamFieldingTable.vue b/src/components/TeamFieldingTable.vue index 8a66230..94579e7 100644 --- a/src/components/TeamFieldingTable.vue +++ b/src/components/TeamFieldingTable.vue @@ -97,8 +97,12 @@ export default { }, watch: { teamId(newValue, oldValue) { - if (newValue !== oldValue) + if (newValue !== oldValue) { + this.fieldingStats = [] + this.sortKey = 'xCheckCount' + this.sortOrder = -1 this.fetchData() + } } }, methods: {