Skip to content
Snippets Groups Projects
Unverified Commit 5ee1e571 authored by Paul Rosenzweig's avatar Paul Rosenzweig Committed by GitHub
Browse files

pass onRenderError to maps, but don't call it if there's an error tracking (#12307)

parent ae151525
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,6 @@ export default class CardRenderer extends Component {
});
} catch (err) {
console.error(err);
this.props.onRenderError(err.message || err);
}
}
......
......@@ -330,6 +330,7 @@ export default class ChoroplethMap extends Component {
onClickFeature={onClickFeature}
projection={projection}
projectionFrame={projectionFrame}
onRenderError={this.props.onRenderError}
/>
) : (
<LeafletChoropleth
......@@ -339,6 +340,7 @@ export default class ChoroplethMap extends Component {
onHoverFeature={onHoverFeature}
onClickFeature={onClickFeature}
minimalBounds={minimalBounds}
onRenderError={this.props.onRenderError}
/>
)}
</ChartWithLegend>
......
......@@ -17,6 +17,7 @@ const LeafletChoropleth = ({
getColor = () => color("brand"),
onHoverFeature = () => {},
onClickFeature = () => {},
onRenderError,
}) => (
<CardRenderer
series={series}
......@@ -104,6 +105,7 @@ const LeafletChoropleth = ({
map.remove();
};
}}
onRenderError={onRenderError}
/>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment