diff --git a/formily/setters/src/components/ReactionsSetter/PathSelector.tsx b/formily/setters/src/components/ReactionsSetter/PathSelector.tsx index 369fa7d5b..d5f615240 100644 --- a/formily/setters/src/components/ReactionsSetter/PathSelector.tsx +++ b/formily/setters/src/components/ReactionsSetter/PathSelector.tsx @@ -52,7 +52,7 @@ const transformDataSource = (node: TreeNode) => { const transformRelativePath = (arrayNode: TreeNode, targetNode: TreeNode) => { if (targetNode.depth === currentNode.depth) return `.${targetNode.props.name || targetNode.id}` - return `${dots(currentNode.depth - arrayNode.depth)}[].${targetPath( + return `${dots(targetNode.depth)}[].${targetPath( arrayNode, targetNode )}`