Skip to content

armgit / core

Public Imported from GitHub
0

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

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.ts
index 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();
}