File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5454 return output && ( output === input . check || ( Array . isArray ( output ) && output . includes ( input . check ) ) )
5555 }
5656 const mode = blockDef . connections ?. mode
57- return mode && mode !== 'statement' && output && ( output === input . check || ( Array . isArray ( output ) && output . includes ( input . check ) ) )
57+ if ( input . type === 'statement' ) {
58+ // match when parent type=statement + check=expression, i.e. root->actions
59+ return mode && mode === 'statement' && output && ( output === input . check || ( Array . isArray ( output ) && output . includes ( input . check ) ) )
60+ } else {
61+ return mode && mode !== 'statement' && output && ( output === input . check || ( Array . isArray ( output ) && output . includes ( input . check ) ) )
62+ }
5863 } )
5964
6065 if ( compatibleBlocks . length ) {
You can’t perform that action at this time.
0 commit comments