fix: size of undefined in ImportProcessor (#10225)

This commit is contained in:
Tom Moor
2025-09-21 23:31:28 +02:00
committed by GitHub
parent f25ba44477
commit 3d1f55b605
+1 -1
View File
@@ -533,7 +533,7 @@ export default abstract class ImportsProcessor<
const json = node.toJSON() as ProsemirrorData;
const attrs = json.attrs ?? {};
attrs.size = attachmentsMap[attrs.id as string].size;
attrs.size = attachmentsMap[attrs.id as string]?.size;
json.attrs = attrs;
return Node.fromJSON(schema, json);