100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
UI update: Fix input field for JSON Object value types (Fixes #1175) (#1184)
Rich Turner8899c7cbdc18
diff --git a/ui/component/or-mwc-components/src/or-mwc-input.ts b/ui/component/or-mwc-components/src/or-mwc-input.tsindex 652aa1d6a..f3fa4a62f 100644--- a/ui/component/or-mwc-components/src/or-mwc-input.ts+++ b/ui/component/or-mwc-components/src/or-mwc-input.ts@@ -1300,7 +1300,7 @@ export class OrMwcInput extends LitElement {if (valMinMax.some((v) => typeof (v) !== "string")) {- if (this.type === InputType.JSON) {+ if (this.type === InputType.JSON || this.type === InputType.JSON_OBJECT) {if (valMinMax[0] !== undefined) {if (typeof valMinMax[0] !== "string" || valMinMax[0] === null) {try {