From b803f7b4d8a5285d311eccf7cc799e50f4033ccc Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Wed, 27 Jan 2021 07:57:59 +1100 Subject: [PATCH] Fix crash with non synced fog edit --- src/helpers/drawing.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helpers/drawing.js b/src/helpers/drawing.js index c375cfb..05ddb68 100644 --- a/src/helpers/drawing.js +++ b/src/helpers/drawing.js @@ -219,7 +219,9 @@ export function drawActionsToShapes(actions, actionIndex) { } if (action.type === "edit") { for (let edit of action.shapes) { - shapesById[edit.id] = { ...shapesById[edit.id], ...edit }; + if (edit.id in shapesById) { + shapesById[edit.id] = { ...shapesById[edit.id], ...edit }; + } } } if (action.type === "remove") {