Add deep to home watcher
This commit is contained in:
parent
2467e7ba47
commit
b52b519c5e
@ -57,7 +57,7 @@ interface TotalStatsResult {
|
|||||||
export default class Home extends Vue {
|
export default class Home extends Vue {
|
||||||
totalStats?: TotalStatsResult[];
|
totalStats?: TotalStatsResult[];
|
||||||
|
|
||||||
@Watch('totalStats')
|
@Watch('totalStats', { immediate: true, deep: true })
|
||||||
getStat(key: TotalStatsHeaders): string | undefined {
|
getStat(key: TotalStatsHeaders): string | undefined {
|
||||||
const result = this.totalStats?.find((elem) => elem.name === key);
|
const result = this.totalStats?.find((elem) => elem.name === key);
|
||||||
if (result) {
|
if (result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user