allow child routers to have fields

This commit is contained in:
Evan Almloff committed 2023-06-27 15:56:47 -07:00
1 parent 4fba279291
commit 914767892c
2 files changed
+79 -48

No files matched your search

+1 -1
View File
@@ -293,7 +293,7 @@ impl RouteEnum {
let mut segment = SiteMapSegment::new(&route.segments);
if let RouteType::Child(child) = &route.ty {
let new_segment = SiteMapSegment {
segment_type: SegmentType::Child(child.clone()),
segment_type: SegmentType::Child(child.ty.clone()),
children: Vec::new(),
};
match &mut segment {