diff --git a/web/app/components/workflow/collaboration/core/collaboration-manager.ts b/web/app/components/workflow/collaboration/core/collaboration-manager.ts index a23717a96a..8629fce3bd 100644 --- a/web/app/components/workflow/collaboration/core/collaboration-manager.ts +++ b/web/app/components/workflow/collaboration/core/collaboration-manager.ts @@ -1346,6 +1346,9 @@ export class CollaborationManager { return try { + if (this.getNodes().length === 0 && this.getEdges().length === 0) + return + const snapshot = this.doc.export({ mode: 'snapshot' }) this.sendGraphEvent(snapshot) }