thingsboard-memoizeit
Changes
ui/src/app/common/utils.service.js 6(+6 -0)
Details
ui/src/app/common/utils.service.js 6(+6 -0)
diff --git a/ui/src/app/common/utils.service.js b/ui/src/app/common/utils.service.js
index de5fef3..b8a98a8 100644
--- a/ui/src/app/common/utils.service.js
+++ b/ui/src/app/common/utils.service.js
@@ -441,6 +441,12 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t
settings: {},
_hash: Math.random()
}
+ if (keyInfo.units) {
+ dataKey.units = keyInfo.units;
+ }
+ if (angular.isDefined(keyInfo.decimals)) {
+ dataKey.decimals = keyInfo.decimals;
+ }
if (keyInfo.color) {
dataKey.color = keyInfo.color;
} else {