From 74fc48e89da8a764f4fa512c82bb00bb834bbb09 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 24 Nov 2022 10:56:43 +0100 Subject: [PATCH] Fix nesting containers --- .../src/modules/flowchart/flowchart.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/designer/elsa-workflows-designer/src/modules/flowchart/flowchart.tsx b/src/designer/elsa-workflows-designer/src/modules/flowchart/flowchart.tsx index 726c9c33e..3b14fe49e 100644 --- a/src/designer/elsa-workflows-designer/src/modules/flowchart/flowchart.tsx +++ b/src/designer/elsa-workflows-designer/src/modules/flowchart/flowchart.tsx @@ -384,8 +384,10 @@ export class FlowchartComponent implements ContainerActivityComponent { const currentScopeDescriptor = this.getActivityDescriptor(currentScope.type); if (!!currentPortName) { - const portProvider = this.portProviderRegistry.get(currentScope.type); - portProvider.assignPort(currentPortName, currentLevel, {activity: currentScope, activityDescriptor: currentScopeDescriptor}); + if(currentLevel != currentScope) { + const portProvider = this.portProviderRegistry.get(currentScope.type); + portProvider.assignPort(currentPortName, currentLevel, {activity: currentScope, activityDescriptor: currentScopeDescriptor}); + } } else { this.activity = currentLevel; }