Merge pull request #1298 from ealmloff/fix-spread-routes

Fix parsing spread routes
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2023-09-16 11:56:54 -07:00
commit cb39122247
1 file changed
+2 -4
+2 -4
View File
@@ -277,10 +277,8 @@ impl Route {
}
}
for segment in &self.segments {
if let RouteSegment::Dynamic(other, ..) = segment {
if other == name {
from_route = true
}
if segment.name().as_ref() == Some(name) {
from_route = true
}
}
if let Some(query) = &self.query {