Skip to content

Commit b102aa4

Browse files
author
Dmytro Trotsko
committed
Changed auto-typing locations set
1 parent 059905c commit b102aa4

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/assets/js/alter_dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/templates/alternative_interface/alter_dashboard.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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 -->

0 commit comments

Comments
 (0)