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
Validate the view when the modified property has changed in addition to the ruleset (#1658)
Dominique Kleeven73a88a05facf
diff --git a/ui/component/or-rules/src/or-rule-viewer.ts b/ui/component/or-rules/src/or-rule-viewer.tsindex 1b06abc25..1835cfe2c 100644--- a/ui/component/or-rules/src/or-rule-viewer.ts+++ b/ui/component/or-rules/src/or-rule-viewer.ts@@ -239,7 +239,7 @@ export class OrRuleViewer extends translate(i18next)(LitElement) {}protected updated(_changedProperties: PropertyValues): void {- if (_changedProperties.has("ruleset")) {+ if (_changedProperties.has("ruleset") || _changedProperties.has("modified")) {if (this.ruleset && this.view) {this._ruleValid = this.view.validate();}