Skip to content

Commit

Permalink
Fix variant names being displayed incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchts committed Sep 2, 2023
1 parent d529180 commit bd5fa89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/js/maps-redux.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function populateDownloadModal(id) {
document.getElementById('mr-map-variants').classList.remove('d-none');
map.variants.forEach(variant => {
var variantEl = document.createElement('li');
variantEl.innerHTML = variant.override_name ? variant.name : map.name + ": " + variant.name;
variantEl.innerHTML = variant.name;

document.querySelectorAll('[data-populate="variants"]').forEach(node => {
node.appendChild(variantEl.cloneNode(true));
Expand Down

0 comments on commit bd5fa89

Please sign in to comment.