Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Apr 9, 2021
1 parent 6d51e8d commit 0d85855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/legacy-plugin-chart-country-map/src/CountryMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ function CountryMap(element, props) {
d3.json(url, (error, mapData) => {
if (error) {
const countryName = countryOptions.find(x => x[0] === country)?.[1] || country;
element.innerHTML = `<div class="alert alert-danger">Could not get map data for ${countryName}</div>`;
d3.select(element).html(
`<div class="alert alert-danger">Could not load map data for ${countryName}</div>`,
);
} else {
maps[country] = mapData;
drawMap(mapData);
Expand Down

0 comments on commit 0d85855

Please sign in to comment.