Reset data on watcher for fielding table

This commit is contained in:
Peter 2024-11-15 16:26:09 -06:00
parent 1533fbd0ae
commit 1131465733

View File

@ -97,8 +97,12 @@ export default {
}, },
watch: { watch: {
teamId(newValue, oldValue) { teamId(newValue, oldValue) {
if (newValue !== oldValue) if (newValue !== oldValue) {
this.fieldingStats = []
this.sortKey = 'xCheckCount'
this.sortOrder = -1
this.fetchData() this.fetchData()
}
} }
}, },
methods: { methods: {