mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 05:12:37 +03:00
chore: typo fix (#1121)
This commit is contained in:
parent
4aebdfc81a
commit
d7bbb0978f
@ -9,7 +9,7 @@ import {
|
|||||||
BlockSuiteEditorProps,
|
BlockSuiteEditorProps,
|
||||||
} from '../components/BlockSuiteEditor';
|
} from '../components/BlockSuiteEditor';
|
||||||
|
|
||||||
const worksapce = new Workspace({
|
const workspace = new Workspace({
|
||||||
room: 'test',
|
room: 'test',
|
||||||
providers: [],
|
providers: [],
|
||||||
isSSR: typeof window === 'undefined',
|
isSSR: typeof window === 'undefined',
|
||||||
@ -39,12 +39,12 @@ As a pro tip, you can combine multiple providers! For example, feel free to open
|
|||||||
For any feedback, please visit [BlockSuite issues](https://github.com/toeverything/blocksuite/issues) 📍`;
|
For any feedback, please visit [BlockSuite issues](https://github.com/toeverything/blocksuite/issues) 📍`;
|
||||||
|
|
||||||
const pagePromise = new Promise<Page>(resolve => {
|
const pagePromise = new Promise<Page>(resolve => {
|
||||||
worksapce.signals.pageAdded.once(pageId => {
|
workspace.signals.pageAdded.once(pageId => {
|
||||||
const page = worksapce.getPage(pageId) as Page;
|
const page = workspace.getPage(pageId) as Page;
|
||||||
pageOrPagePromise = page;
|
pageOrPagePromise = page;
|
||||||
resolve(page);
|
resolve(page);
|
||||||
});
|
});
|
||||||
worksapce.createPage('0');
|
workspace.createPage('0');
|
||||||
});
|
});
|
||||||
let pageOrPagePromise: Promise<Page> | Page = pagePromise;
|
let pageOrPagePromise: Promise<Page> | Page = pagePromise;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user