File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
templates/alternative_interface Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1069,7 +1069,7 @@ async function handlePathogenChange() {
10691069 if ( data . available_geos && Array . isArray ( data . available_geos ) ) {
10701070 data . available_geos . forEach ( group => {
10711071 if ( group . children && Array . isArray ( group . children ) ) {
1072- group . children . forEach ( child => {
1072+ group . children . slice ( 0 , parseInt ( MAX_GEOGRAPHY_NAMES / data . available_geos . length ) ) . forEach ( child => {
10731073 window . geographyNames . push ( child . text ) ;
10741074 } ) ;
10751075 }
Original file line number Diff line number Diff line change @@ -189,17 +189,6 @@ <h5 class="card-title">Indicator Visualization</h5>
189189 { % endfor % }
190190 ] ;
191191
192- // Pass geography names for typing animation (limited to 25)
193- window . geographyNames = [ ] ;
194- { % for geography in available_geos % }
195- { % for child in geography . children % }
196- window . geographyNames . push ( "{{ child.text }}" ) ;
197- { % endfor % }
198- { % endfor % }
199- // Limit to 25 total
200- if ( window . geographyNames . length > 25 ) {
201- window . geographyNames = window . geographyNames . slice ( 0 , 25 ) ;
202- }
203192 </ script >
204193
205194 <!-- Custom JavaScript -->
You can’t perform that action at this time.
0 commit comments