From 32453c4cab3f88949a029b2d9c8b50ca7ac683bc Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Wed, 27 Jul 2022 16:29:34 +0300
Subject: upd store logic, dynamic

---
 src/views/_sila/Fans/Dynamic/FanSpeed.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/views/_sila/Fans/Dynamic/FanSpeed.vue')

diff --git a/src/views/_sila/Fans/Dynamic/FanSpeed.vue b/src/views/_sila/Fans/Dynamic/FanSpeed.vue
index ba6e6c82..b119c268 100644
--- a/src/views/_sila/Fans/Dynamic/FanSpeed.vue
+++ b/src/views/_sila/Fans/Dynamic/FanSpeed.vue
@@ -133,7 +133,9 @@ export default {
     },
 
     allSensors() {
-      return this.$store.getters['fan/fans'];
+      return this.timeScale === 'hour'
+        ? this.$store.getters['fan/fansLastHour']
+        : this.$store.getters['fan/fans'];
     },
 
     filteredSensors() {
-- 
cgit v1.2.3

