fix: two tabs refresh cause empty graph

This commit is contained in:
hjlarry
2026-02-11 10:32:17 +08:00
parent 655f61a187
commit 5157a33aff

View File

@ -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)
}