File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { MenuIconType } from '../../../components/iconCss.ts' ;
2- import { getOrganismConfig , isStaging } from '../../../config.ts' ;
2+ import { getOrganismConfig } from '../../../config.ts' ;
33import { type Organism , organismConfig , paths } from '../../../types/Organism.ts' ;
44import { Page } from '../../../types/pages.ts' ;
55import {
@@ -51,8 +51,7 @@ export function getPathogenMegaMenuSections(): PathogenMegaMenuSections {
5151
5252 const supplementaryEntries : MegaMenuSection [ ] = [ ] ;
5353
54- // only on staging for now, remove when enabling on prod: https://github.com/GenSpectrum/dashboards/issues/1108
55- if ( isStaging ( ) && getOrganismConfig ( config . organism ) . hasCollections ) {
54+ if ( getOrganismConfig ( config . organism ) . hasCollections ) {
5655 supplementaryEntries . push ( {
5756 label : 'Collections' ,
5857 href : Page . collectionsForOrganism ( config . organism ) ,
Original file line number Diff line number Diff line change 11---
22import { CollectionsOverview } from ' ../../../components/collections/overview/CollectionsOverview' ;
3- import { isStaging } from ' ../../../config' ;
43import { defaultBreadcrumbs } from ' ../../../layouts/Breadcrumbs' ;
54import ContaineredPageLayout from ' ../../../layouts/ContaineredPage/ContaineredPageLayout.astro' ;
65import { organismConfig , organismSchema } from ' ../../../types/Organism' ;
76import { Page } from ' ../../../types/pages' ;
87
9- // only on staging for now, remove when enabling on prod: https://github.com/GenSpectrum/dashboards/issues/1108
10- if (! isStaging ()) {
11- return Astro .redirect (' /404' );
12- }
13-
148const { organism } = Astro .params ;
159
1610const parsedOrganism = organismSchema .safeParse (organism );
Original file line number Diff line number Diff line change 11---
2- import { getOrganismConfig , isStaging } from ' ../../config' ;
2+ import { getOrganismConfig } from ' ../../config' ;
33import { defaultBreadcrumbs } from ' ../../layouts/Breadcrumbs' ;
44import ContaineredPageLayout from ' ../../layouts/ContaineredPage/ContaineredPageLayout.astro' ;
55import { allOrganisms , organismConfig } from ' ../../types/Organism' ;
66import { Page } from ' ../../types/pages' ;
7-
8- // only on staging for now, remove when enabling on prod: https://github.com/GenSpectrum/dashboards/issues/1108
9- if (! isStaging ()) {
10- return Astro .redirect (' /404' );
11- }
127---
138
149<ContaineredPageLayout
You can’t perform that action at this time.
0 commit comments