mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-27 04:13:24 +03:00
fix: localworkspace will request blob (#925)
This commit is contained in:
parent
2bde086e28
commit
6327b5864d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user