From 6327b5864d055a791ddd17b2010f2ab6ba3e1a3f Mon Sep 17 00:00:00 2001 From: DiamondThree Date: Thu, 9 Feb 2023 14:59:02 +0800 Subject: [PATCH] fix: localworkspace will request blob (#925) --- packages/data-center/src/provider/local/utils.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/data-center/src/provider/local/utils.ts b/packages/data-center/src/provider/local/utils.ts index bd5654c51d..3788014105 100644 --- a/packages/data-center/src/provider/local/utils.ts +++ b/packages/data-center/src/provider/local/utils.ts @@ -7,7 +7,9 @@ import { setDefaultAvatar } from '../utils.js'; export const loadWorkspaceUnit = async (params: WorkspaceUnitCtorParams) => { const workspaceUnit = new WorkspaceUnit(params); - const blocksuiteWorkspace = createBlocksuiteWorkspace(workspaceUnit.id); + const blocksuiteWorkspace = createBlocksuiteWorkspace(workspaceUnit.id, { + blobOptionsGetter: (k: string) => undefined, + }); await applyLocalUpdates(blocksuiteWorkspace); @@ -19,7 +21,9 @@ export const loadWorkspaceUnit = async (params: WorkspaceUnitCtorParams) => { export const createWorkspaceUnit = async (params: WorkspaceUnitCtorParams) => { const workspaceUnit = new WorkspaceUnit(params); - const blocksuiteWorkspace = createBlocksuiteWorkspace(workspaceUnit.id); + const blocksuiteWorkspace = createBlocksuiteWorkspace(workspaceUnit.id, { + blobOptionsGetter: (k: string) => undefined, + }); blocksuiteWorkspace.meta.setName(workspaceUnit.name); if (!workspaceUnit.avatar) { await setDefaultAvatar(blocksuiteWorkspace);