fixes console error on send to resource

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-11-26 16:45:37 -03:00
parent bd5c93ce58
commit 9c0f6df20b

View file

@ -153,7 +153,7 @@ const stampTool = () =>
}; };
state.movecb = (evn) => { state.movecb = (evn) => {
if (evn.target.id === "overlayCanvas") { if (evn.target && evn.target.id === "overlayCanvas") {
let x = evn.x; let x = evn.x;
let y = evn.y; let y = evn.y;
if (state.snapToGrid) { if (state.snapToGrid) {