mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 13:01:59 +03:00
parent
5b0b8cf216
commit
f9971ba922
@ -6,6 +6,7 @@ import {
|
||||
currentWorkspaceIdAtom,
|
||||
getCurrentStore,
|
||||
} from '@toeverything/infra/atom';
|
||||
import { guidCompatibilityFix } from '@toeverything/infra/blocksuite';
|
||||
import type { ReactElement } from 'react';
|
||||
import {
|
||||
type LoaderFunction,
|
||||
@ -43,6 +44,7 @@ export const loader: LoaderFunction = async args => {
|
||||
|
||||
const workspace = await rootStore.get(workspaceAtom);
|
||||
return (() => {
|
||||
guidCompatibilityFix(workspace.doc);
|
||||
const blockVersions = workspace.meta.blockVersions;
|
||||
if (!blockVersions) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user