diff options
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/Health/SensorsStore.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/modules/Health/SensorsStore.js b/src/store/modules/Health/SensorsStore.js index 24ad2d1e..edcbf7b2 100644 --- a/src/store/modules/Health/SensorsStore.js +++ b/src/store/modules/Health/SensorsStore.js @@ -53,10 +53,10 @@ const SensorsStore = { name: data.Name, status: data.Status.Health, currentValue: data.Reading, - lowerCaution: data.Thresholds.LowerCaution.Reading, - upperCaution: data.Thresholds.UpperCaution.Reading, - lowerCritical: data.Thresholds.LowerCritical.Reading, - upperCritical: data.Thresholds.UpperCritical.Reading, + lowerCaution: data.Thresholds?.LowerCaution?.Reading, + upperCaution: data.Thresholds?.UpperCaution?.Reading, + lowerCritical: data.Thresholds?.LowerCritical?.Reading, + upperCritical: data.Thresholds?.UpperCritical?.Reading, units: data.ReadingUnits }; }); |