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
@@ -75,7 +75,7 @@ func deleteFromMap(candidate *CandidateNode, childPath interface{}) {
childCandidate := &CandidateNode{
Node: value,
Document: candidate.Document,
Path: append(candidate.Path, key.Value),
Path: candidate.CreateChildPath(key.Value),
}
shouldDelete := key.Value == childPath