fix parsing spread routes

This commit is contained in:
Evan Almloff committed 2023-08-04 12:06:17 -07:00
1 parent 6d154b5072
commit 61a3b05616
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 {