Fix fog useCallback dependency

This commit is contained in:
Mitchell McCaffrey 2021-06-14 12:21:08 +10:00
parent 64dfb17fa1
commit 63421f824a

View File

@ -432,7 +432,14 @@ function MapFog({
}
setDrawingShape(null);
}, [toolSettings, drawingShape, onShapesCut, onShapesAdd, shapes]);
}, [
toolSettings,
drawingShape,
onShapesCut,
onShapesAdd,
onShapeError,
shapes,
]);
// Add keyboard shortcuts
function handleKeyDown(event) {