diff --git a/web/client/plugins/longitudinalProfile/Dock.jsx b/web/client/plugins/longitudinalProfile/Dock.jsx index 661fb05692..8e93f5b6cf 100644 --- a/web/client/plugins/longitudinalProfile/Dock.jsx +++ b/web/client/plugins/longitudinalProfile/Dock.jsx @@ -196,7 +196,7 @@ const ChartData = ({ bsStyle="primary" disabled={isTainted} onClick={() => { - toPng(document.querySelector('canvas.ol-unselectable')) + toPng(document.querySelector('.ol-unselectable canvas')) .then(function(dataUrlMap) { generateChartImageUrl() .then((dataUrlChart) => {