Fix drawing null action
This commit is contained in:
parent
4c927c7877
commit
cf63034c0e
@ -208,6 +208,9 @@ export function drawActionsToShapes(actions, actionIndex) {
|
|||||||
let shapesById = {};
|
let shapesById = {};
|
||||||
for (let i = 0; i <= actionIndex; i++) {
|
for (let i = 0; i <= actionIndex; i++) {
|
||||||
const action = actions[i];
|
const action = actions[i];
|
||||||
|
if (!action) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (action.type === "add" || action.type === "edit") {
|
if (action.type === "add" || action.type === "edit") {
|
||||||
for (let shape of action.shapes) {
|
for (let shape of action.shapes) {
|
||||||
shapesById[shape.id] = shape;
|
shapesById[shape.id] = shape;
|
||||||
|
Loading…
Reference in New Issue
Block a user