mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +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
|
return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (this.getNodes().length === 0 && this.getEdges().length === 0)
|
||||||
|
return
|
||||||
|
|
||||||
const snapshot = this.doc.export({ mode: 'snapshot' })
|
const snapshot = this.doc.export({ mode: 'snapshot' })
|
||||||
this.sendGraphEvent(snapshot)
|
this.sendGraphEvent(snapshot)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user