only attempt to update heatmap when enabled (fixes #45)
This commit is contained in:
parent
b86c6735f2
commit
dc62d7e3d7
|
@ -117,7 +117,7 @@ export const HeatmapOverlay = () => {
|
|||
return;
|
||||
}
|
||||
|
||||
updateHeatmap();
|
||||
if (heatmapOverlay.enabled) updateHeatmap();
|
||||
|
||||
return () => {};
|
||||
}, [canvasRef, heatmapOverlay.enabled, updateHeatmap]);
|
||||
|
|
Loading…
Reference in New Issue