fix(core): change server url of stable to insider (#4902) (#4926)

This commit is contained in:
Peng Xiao
2023-11-14 12:05:52 +08:00
committed by GitHub
parent 6f18ddbe85
commit c90b477f60

View File

@@ -6,6 +6,7 @@ import {
currentWorkspaceIdAtom, currentWorkspaceIdAtom,
getCurrentStore, getCurrentStore,
} from '@toeverything/infra/atom'; } from '@toeverything/infra/atom';
import { guidCompatibilityFix } from '@toeverything/infra/blocksuite';
import type { ReactElement } from 'react'; import type { ReactElement } from 'react';
import { import {
type LoaderFunction, type LoaderFunction,
@@ -43,6 +44,7 @@ export const loader: LoaderFunction = async args => {
const workspace = await rootStore.get(workspaceAtom); const workspace = await rootStore.get(workspaceAtom);
return (() => { return (() => {
guidCompatibilityFix(workspace.doc);
const blockVersions = workspace.meta.blockVersions; const blockVersions = workspace.meta.blockVersions;
if (!blockVersions) { if (!blockVersions) {
return true; return true;