The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
[`Validate build and run`] Early return if workspace migration has no actions (#16467)
Paul Rastoin478c753a5065
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-v2/services/workspace-migration-validate-build-and-run-service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-v2/services/workspace-migration-validate-build-and-run-service.tsindex 571ec62dc03..620eb4db46c 100644--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-v2/services/workspace-migration-validate-build-and-run-service.ts+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-v2/services/workspace-migration-validate-build-and-run-service.ts@@ -189,6 +189,13 @@ export class WorkspaceMigrationValidateBuildAndRunService {return validateAndBuildResult;}+ // Note: This should be removed once we've refactored the runner optimistic rendering+ // As with the current implementation passing an empty workspace migration might result+ // in dependency flat entity maps invalidation+ if (validateAndBuildResult.workspaceMigration.actions.length === 0) {+ return;+ }+await this.workspaceMigrationRunnerV2Service.run(validateAndBuildResult.workspaceMigration).catch((error) => {