mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: size of undefined in ImportProcessor (#10225)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user