mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 18:06:36 +08:00
fix: two tabs refresh cause empty graph
This commit is contained in:
parent
7eb1c026a2
commit
692bf7ced1
@ -1335,6 +1335,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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user