mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix:commpatible old workspace
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
StoreOptions,
|
||||
Workspace as BlocksuiteWorkspace,
|
||||
} from '@blocksuite/store';
|
||||
import { builtInSchemas } from '@blocksuite/blocks/models';
|
||||
import { builtInSchemas, __unstableSchemas } from '@blocksuite/blocks/models';
|
||||
|
||||
export const createBlocksuiteWorkspace = (
|
||||
workspaceId: string,
|
||||
@@ -11,7 +11,9 @@ export const createBlocksuiteWorkspace = (
|
||||
return new BlocksuiteWorkspace({
|
||||
room: workspaceId,
|
||||
...workspaceOption,
|
||||
}).register(builtInSchemas);
|
||||
})
|
||||
.register(builtInSchemas)
|
||||
.register(__unstableSchemas);
|
||||
};
|
||||
|
||||
const DefaultHeadImgColors = [
|
||||
|
||||
Reference in New Issue
Block a user