Skip to content

armgit / core

Public Imported from GitHub
0

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

Fix bug with storing custom target for messages

Robin Dekkersc51f3aa23a18
diff --git a/ui/component/or-rules/src/json-viewer/or-rule-action-notification.ts b/ui/component/or-rules/src/json-viewer/or-rule-action-notification.ts
index c4e1a4000..948832baa 100644
--- a/ui/component/or-rules/src/json-viewer/or-rule-action-notification.ts
+++ b/ui/component/or-rules/src/json-viewer/or-rule-action-notification.ts
@@ -304,6 +304,11 @@ export class OrRuleActionNotification extends LitElement {
protected _onTargetChanged(targetType: ActionTargetType, value: string | undefined) {
switch (targetType) {
+ case ActionTargetType.CUSTOM:
+ this.action.target = {
+ custom: value
+ }
+ break;
case ActionTargetType.ASSET:
if (!value || value === "allMatched") {
delete this.action.target;