There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: clear any
DiamondThreee91ea0d34b71
diff --git a/packages/app/src/providers/app-state-provider/Provider.tsx b/packages/app/src/providers/app-state-provider/Provider.tsxindex 0fbf83d659..eb99606bf0 100644--- a/packages/app/src/providers/app-state-provider/Provider.tsx+++ b/packages/app/src/providers/app-state-provider/Provider.tsx@@ -8,6 +8,8 @@ import {PageMeta,} from './interface';import { createDefaultWorkspace } from './utils';+import { Workspace } from '@blocksuite/store';+import { WorkspaceInfo } from '@affine/datacenter/dist/src/types';type AppStateContextProps = PropsWithChildren<Record<string, unknown>>;@@ -105,9 +107,11 @@ export const AppStateProvider = ({return currentWorkspace;}const workspace = await dataCenter.loadWorkspace(workspaceId);- const currentMetaWorkSpace = dataCenter.workspaces.find(item => {- return item.id === workspace.room;- });+ const currentMetaWorkSpace = dataCenter.workspaces.find(+ (item: WorkspaceInfo) => {+ return item.id === workspace.room;+ }+ );setAppState({...appState,currentWorkspace: workspace,