Added check for null gesture
This commit is contained in:
parent
96efcfd5de
commit
0e8e4a45d5
@ -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([]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user