From 3def708f8c86c638333ddcd0069a77d93951cb56 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Wed, 4 Nov 2020 08:29:11 +0100 Subject: [PATCH] fix(ui): allow to omit endpoint in multi channel associations --- src/components/ControlPanel.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ControlPanel.vue b/src/components/ControlPanel.vue index 6c6fef2dd97..27abe25f85b 100644 --- a/src/components/ControlPanel.vue +++ b/src/components/ControlPanel.vue @@ -1238,8 +1238,8 @@ export default { var association = { nodeId: target } - if (g.group.multiChannel) { - association.endpoint = g.targetInstance || 0 + if (g.group.multiChannel && g.targetInstance >= 0) { + association.endpoint = g.targetInstance } if (g && g.node && target) { @@ -1258,8 +1258,8 @@ export default { if (g && g.node && target) { var association = { nodeId: target } - if (g.group.multiChannel) { - association.endpoint = g.targetInstance || 0 + if (g.group.multiChannel && g.targetInstance >= 0) { + association.endpoint = g.targetInstance } var args = [g.node.id, g.group.value, [association]]