Fix drawing null action

This commit is contained in:
Mitchell McCaffrey 2021-01-21 07:12:44 +11:00
parent 4c927c7877
commit cf63034c0e

View File

@ -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;