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 attribute input send button (Fixes #306)

Rich Turner69ad822e2776
diff --git a/ui/component/or-attribute-input/src/index.ts b/ui/component/or-attribute-input/src/index.ts
index 6741280ac..d42364b80 100644
--- a/ui/component/or-attribute-input/src/index.ts
+++ b/ui/component/or-attribute-input/src/index.ts
@@ -630,6 +630,10 @@ export class OrAttributeInput extends subscribe(manager)(translate(i18next)(LitE
return;
}
+ if (this._newValue === undefined) {
+ return;
+ }
+
const oldValue = this.getValue();
const newValue = this._newValue;
this._newValue = undefined;