fix(infra): fix sqlite not save data (#6336)
SQLiteDB will not save subdoc data that does not exist on rootdoc, so we must save rootdoc first, and then save subdoc
This commit is contained in:
@@ -42,6 +42,7 @@ export class WorkspaceEngine {
|
|||||||
blob: status,
|
blob: status,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
this.doc.setPriority(yDoc.guid, 100);
|
||||||
this.doc.addDoc(yDoc);
|
this.doc.addDoc(yDoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user