Skip to content

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.

fix(core): hidden modals when workspace fallback (#6301)

EYHN3e547ce4cc4d
diff --git a/packages/frontend/core/src/pages/workspace/index.tsx b/packages/frontend/core/src/pages/workspace/index.tsx
index a80f4e9d9e..81b479a396 100644
--- a/packages/frontend/core/src/pages/workspace/index.tsx
+++ b/packages/frontend/core/src/pages/workspace/index.tsx
@@ -18,10 +18,7 @@ import { WorkspaceLayout } from '../../layouts/workspace-layout';
import { RightSidebarContainer } from '../../modules/right-sidebar';
import { WorkbenchRoot } from '../../modules/workbench';
import { CurrentWorkspaceService } from '../../modules/workspace/current-workspace';
-import {
- AllWorkspaceModals,
- CurrentWorkspaceModals,
-} from '../../providers/modal-provider';
+import { AllWorkspaceModals } from '../../providers/modal-provider';
import { performanceRenderLogger } from '../../shared';
import { PageNotFound } from '../404';
@@ -92,7 +89,6 @@ export const Component = (): ReactElement => {
<ServiceProviderContext.Provider value={workspace.services}>
<WorkspaceFallback key="workspaceLoading" />
<AllWorkspaceModals />
- <CurrentWorkspaceModals />
</ServiceProviderContext.Provider>
);
}