mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
refactor(editor): reduce dependency to doc collection (#9492)
This commit is contained in:
@@ -58,7 +58,7 @@ test('newly created page shows empty history', async ({ page }) => {
|
||||
const pushCurrentPageUpdates = async (page: Page) => {
|
||||
const [workspaceId, guid, updates, state] = await page.evaluate(() => {
|
||||
// @ts-expect-error
|
||||
const Y = window.currentWorkspace.docCollection.constructor.Y;
|
||||
const Y = window.Y;
|
||||
// @ts-expect-error
|
||||
const spaceDoc = window.currentEditor.page.spaceDoc;
|
||||
// @ts-expect-error
|
||||
|
||||
Reference in New Issue
Block a user