Fixed nested array splat path

This commit is contained in:
Mike Farah
2020-12-25 12:49:05 +11:00
parent eb539ff326
commit 98e8b3479f
6 changed files with 33 additions and 8 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ func CollectObjectOperator(d *dataTreeNavigator, matchMap *list.List, pathNode *
func createChildCandidate(candidate *CandidateNode, index int) *CandidateNode {
return &CandidateNode{
Document: candidate.Document,
Path: append(candidate.Path, index),
Path: candidate.CreateChildPath(index),
Filename: candidate.Filename,
Node: candidate.Node.Content[index],
}