feat: add publish workspace page list and workspace page
This commit is contained in:
1 parent
d979acbba7
commit
753c59b534
9 files changed
+94
-56
No files matched your search
@@ -152,7 +152,9 @@ export class AffineProvider extends BaseProvider {
|
||||
const updates = await this._apis.downloadWorkspace(workspaceId, published);
|
||||
if (updates && updates.byteLength) {
|
||||
await new Promise(resolve => {
|
||||
doc.once('update', resolve);
|
||||
doc.once('update', () => {
|
||||
setTimeout(resolve, 100);
|
||||
});
|
||||
BlocksuiteWorkspace.Y.applyUpdate(doc, new Uint8Array(updates));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user