mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 03:56:23 +08:00
fix: authorization token refresh
This commit is contained in:
@@ -92,7 +92,7 @@ const DynamicBlocksuite = ({
|
||||
(indexDBProvider as IndexedDBDocProvider)?.on('synced', async () => {
|
||||
const updates = await downloadWorkspace({ workspaceId });
|
||||
|
||||
if (updates.byteLength) {
|
||||
if (updates && updates.byteLength) {
|
||||
Workspace.Y.applyUpdate(workspace.doc, new Uint8Array(updates));
|
||||
// if after update, the space:meta is empty, then we need to get map with doc
|
||||
workspace.doc.getMap('space:meta');
|
||||
|
||||
Reference in New Issue
Block a user