fix: lint error and build error

This commit is contained in:
DiamondThree
2023-01-10 23:13:22 +08:00
parent d7e6654965
commit eef467558e
11 changed files with 24 additions and 22 deletions

View File

@@ -100,7 +100,6 @@ export const AppStateProvider = ({
if (workspaceId === currentWorkspaceId) {
return currentWorkspace;
}
const workspace = await dataCenter.loadWorkspace(workspaceId);
const currentMetaWorkSpace = dataCenter.workspaces.find(
(item: WorkspaceUnit) => {

View File

@@ -4,7 +4,6 @@ const DEFAULT_WORKSPACE_NAME = 'affine';
export const createDefaultWorkspace = async (dataCenter: DataCenter) => {
return dataCenter.createWorkspace({
avatar: 'test',
name: DEFAULT_WORKSPACE_NAME,
});
};