diff --git a/packages/server/src/common/features/model/model-submission-handler.ts b/packages/server/src/common/features/model/model-submission-handler.ts index 4b97e94..ccd78f9 100644 --- a/packages/server/src/common/features/model/model-submission-handler.ts +++ b/packages/server/src/common/features/model/model-submission-handler.ts @@ -133,11 +133,12 @@ export class ModelSubmissionHandler { * @returns A list of actions to be processed in order to submit the model. */ async submitModelDirectly(reason?: DirtyStateChangeReason): Promise { - const root = this.serializeGModel(); - if (this.diagramConfiguration.layoutKind === ServerLayoutKind.AUTOMATIC && this.layoutEngine) { await this.layoutEngine.layout(); } + + const root = this.serializeGModel(); + const result: Action[] = []; result.push( this.requestModelAction