Replay explanations through shared history selections
This commit is contained in:
@@ -121,8 +121,17 @@ func matchesPathShape(query, candidate Path) bool {
|
||||
return false
|
||||
}
|
||||
if actual.kind == pathSegmentIndex {
|
||||
index, ok := schemaIndex(segment)
|
||||
if !ok || index != actual.index {
|
||||
switch segment.kind {
|
||||
case pathSegmentIndex:
|
||||
if segment.index != actual.index {
|
||||
return false
|
||||
}
|
||||
case pathSegmentParsed:
|
||||
index, ok := schemaIndex(segment)
|
||||
if !ok || index != actual.index {
|
||||
return false
|
||||
}
|
||||
default:
|
||||
return false
|
||||
}
|
||||
} else if segment.kind == pathSegmentIndex {
|
||||
|
||||
Reference in New Issue
Block a user