diff --git a/src/data/restore.ts b/src/data/restore.ts index 979ce9097..d0ae2aca2 100644 --- a/src/data/restore.ts +++ b/src/data/restore.ts @@ -121,8 +121,8 @@ const restoreElementWithProperties = < y: extra.y ?? element.y ?? 0, strokeColor: element.strokeColor || oc.black, backgroundColor: element.backgroundColor || "transparent", - width: element.width || 0, - height: element.height || 0, + width: element.width || 100, + height: element.height || 100, seed: element.seed ?? 1, groupIds: element.groupIds ?? [], roundness: element.roundness diff --git a/src/element/newElement.ts b/src/element/newElement.ts index 7e0d40192..439488f7a 100644 --- a/src/element/newElement.ts +++ b/src/element/newElement.ts @@ -670,7 +670,6 @@ export const convertToExcalidrawElements = ( const elements = bindTextToContainer(element, textElement); res.push(...elements); } else { - delete element.children; //@ts-ignore res.push(element); }