From b52b519c5e12d76ec056433a522b92b70a061b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 11 Apr 2021 11:52:23 +0200 Subject: [PATCH] Add deep to home watcher --- web/frontend/src/components/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/frontend/src/components/Home.vue b/web/frontend/src/components/Home.vue index 20baa3e..5285edb 100644 --- a/web/frontend/src/components/Home.vue +++ b/web/frontend/src/components/Home.vue @@ -57,7 +57,7 @@ interface TotalStatsResult { export default class Home extends Vue { totalStats?: TotalStatsResult[]; - @Watch('totalStats') + @Watch('totalStats', { immediate: true, deep: true }) getStat(key: TotalStatsHeaders): string | undefined { const result = this.totalStats?.find((elem) => elem.name === key); if (result) {