mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-26 17:03:46 +03:00
Merge pull request #779 from toeverything/bugfix/compatible
fix:commpatible old workspace
This commit is contained in:
commit
7522b76089
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user