Added check for null gesture

This commit is contained in:
Mitchell McCaffrey 2020-04-21 20:03:56 +10:00
parent 96efcfd5de
commit 0e8e4a45d5

View File

@ -95,6 +95,7 @@ function MapDrawing({
? pointsToGesture(simplifiedPoints)
: "path";
if (type !== null) {
const data =
type === "path"
? { points: simplifiedPoints }
@ -107,6 +108,7 @@ function MapDrawing({
color: brushColor,
blend: useBrushBlending,
});
}
setBrushPoints([]);
}