fix: infinite loading

This commit is contained in:
himself65
2022-12-24 11:04:12 +08:00
parent f626c5309a
commit b76b491a6e
@@ -80,7 +80,7 @@ const DynamicBlocksuite = ({
});
});
if (indexDBProvider) {
(indexDBProvider as IndexedDBDocProvider).on('synced', async () => {
(indexDBProvider as IndexedDBDocProvider).whenSynced.then(() => {
resolve(workspace);
});
} else {