diff --git a/src/helpers/drawing.js b/src/helpers/drawing.js index 69853b2..4731f4e 100644 --- a/src/helpers/drawing.js +++ b/src/helpers/drawing.js @@ -208,6 +208,9 @@ export function drawActionsToShapes(actions, actionIndex) { let shapesById = {}; for (let i = 0; i <= actionIndex; i++) { const action = actions[i]; + if (!action) { + continue; + } if (action.type === "add" || action.type === "edit") { for (let shape of action.shapes) { shapesById[shape.id] = shape;