mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user