@next-core/editor-bricks-helper 0.39.9 → 0.39.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -397,11 +397,13 @@ function collectRelatedNodes(node, handlers, nodesMap, targetMap, targetRefMap)
397
397
  nodesMap.get(targetNodeUid).upstreamNodes.add(node.$$uid);
398
398
  }
399
399
  } else if (handler.targetRef) {
400
- var targetRefNodeUid = targetRefMap.get(handler.targetRef);
400
+ for (var ref of [].concat(handler.targetRef)) {
401
+ var targetRefNodeUid = targetRefMap.get(ref);
401
402
 
402
- if (targetRefNodeUid) {
403
- nodesMap.get(node.$$uid).downstreamNodes.add(targetRefNodeUid);
404
- nodesMap.get(targetRefNodeUid).upstreamNodes.add(node.$$uid);
403
+ if (targetRefNodeUid) {
404
+ nodesMap.get(node.$$uid).downstreamNodes.add(targetRefNodeUid);
405
+ nodesMap.get(targetRefNodeUid).upstreamNodes.add(node.$$uid);
406
+ }
405
407
  }
406
408
  }
407
409