Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/features/serialize/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ export class LoadDiagramCommand extends Command {
* @param modelSchema The model schema to preprocess
*/
public static preprocessModelSchema(modelSchema: SModelRoot): void {
// These properties are all not included in the root typing and if present are not loaded and handled correctly. So they are removed.
if ("features" in modelSchema) {
delete modelSchema["features"];
}
if ("canvasBounds" in modelSchema) {
delete modelSchema["canvasBounds"];
}

if (modelSchema.children) {
modelSchema.children.forEach((child: SModelElement) => this.preprocessModelSchema(child));
}
Expand Down