Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI updates: Bug fix for units meta item editor in asset editor (Fixes #338)

Rich Turnera7b7b3e5ac20
diff --git a/ui/component/or-input/src/index.ts b/ui/component/or-input/src/index.ts
index 6c1e1a6dd..ee419f645 100644
--- a/ui/component/or-input/src/index.ts
+++ b/ui/component/or-input/src/index.ts
@@ -236,6 +236,10 @@ export const getValueHolderInputTemplateProvider: ValueInputProviderGenerator =
inputType = InputType.DURATION;
break;
}
+
+ if (valueDescriptor.arrayDimensions && valueDescriptor.arrayDimensions > 0) {
+ inputType = InputType.JSON;
+ }
}
if (!inputType) {