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") {