File tree 1 file changed +9
-3
lines changed
client/src/pages/platform/workflow-editor/utils
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ export default function getTaskDispatcherContext({
108
108
const isSourceGhost = source . includes ( 'ghost' ) ;
109
109
const isTargetGhost = target . includes ( 'ghost' ) ;
110
110
111
+ const isSourceNestedBottomGhost = sourceNode ?. data . isNestedBottomGhost ;
112
+
111
113
const taskDispatcherId = ( sourceNode ?. data ?. taskDispatcherId || targetNode ?. data . taskDispatcherId ) as string ;
112
114
113
115
const context : TaskDispatcherContextType = {
@@ -125,15 +127,19 @@ export default function getTaskDispatcherContext({
125
127
}
126
128
127
129
if ( isSourceGhost && isTargetTaskDispatcher ) {
128
- if ( ! targetNode . data . conditionData && ! targetNode . data . loopDaXta && ! targetNode . data . branchData ) {
130
+ if ( ! isSourceNestedBottomGhost ) {
131
+ if ( targetNode . data . conditionData || targetNode . data . loopData || targetNode . data . branchData ) {
132
+ return getContextFromTaskNodeData ( targetNode . data as NodeDataType , 0 ) ;
133
+ }
134
+
129
135
return undefined ;
130
136
}
131
137
132
138
return getContextFromTaskNodeData ( targetNode . data as NodeDataType , 0 ) ;
133
139
}
134
140
135
- if ( isSourceGhost && isTargetTask ) {
136
- return getContextFromTaskNodeData ( targetNode . data as NodeDataType ) ;
141
+ if ( isSourceGhost && ! isSourceNestedBottomGhost && isTargetTask ) {
142
+ return getContextFromTaskNodeData ( targetNode . data as NodeDataType , 1 ) ;
137
143
}
138
144
139
145
if ( isSourceTaskDispatcher && isTargetTask ) {
You can’t perform that action at this time.
0 commit comments