From fde35052ff8854401b6d7359d1c1f7cc5a060051 Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Wed, 27 Jul 2022 12:14:05 +0300
Subject: fx bugs

---
 src/views/_sila/Processors/Dynamic/CpuTemp.vue | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'src/views/_sila/Processors/Dynamic/CpuTemp.vue')

diff --git a/src/views/_sila/Processors/Dynamic/CpuTemp.vue b/src/views/_sila/Processors/Dynamic/CpuTemp.vue
index 115506a9..00cc5998 100644
--- a/src/views/_sila/Processors/Dynamic/CpuTemp.vue
+++ b/src/views/_sila/Processors/Dynamic/CpuTemp.vue
@@ -165,6 +165,12 @@ export default {
     },
   },
 
+  watch: {
+    timeScale() {
+      this.loadData();
+    },
+  },
+
   methods: {
     onOpened(state) {
       if (state) {
@@ -173,7 +179,7 @@ export default {
     },
 
     loadData() {
-      let payload = null;
+      let payload = { lastHour: false };
       if (this.timeScale === 'hour') {
         payload = { lastHour: true };
       }
-- 
cgit v1.2.3

