File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl Data {
59
59
self . teams
60
60
. into_iter ( )
61
61
. filter ( |team| team. website_data . is_some ( ) )
62
- . filter ( |team| team. subteam_of . is_none ( ) )
62
+ . filter ( |team| matches ! ( team. subteam_of. as_deref ( ) , None | Some ( "launching-pad" ) ) )
63
63
. map ( |team| IndexTeam {
64
64
url : format ! (
65
65
"{}/{}" ,
@@ -98,8 +98,12 @@ impl Data {
98
98
. ok_or ( TeamNotFound ) ?;
99
99
100
100
// Don't show pages for subteams
101
- if main_team. subteam_of . is_some ( ) {
102
- return Err ( TeamNotFound . into ( ) ) ;
101
+ if let Some ( subteam) = & main_team. subteam_of {
102
+ // Launching-pad does not have a page of its own, but we do want
103
+ // to show the working groups that are inside it.
104
+ if subteam != "launching-pad" {
105
+ return Err ( TeamNotFound . into ( ) ) ;
106
+ }
103
107
}
104
108
105
109
// Then find all the subteams, working groups and project groups.
You can’t perform that action at this time.
0 commit comments