Compare commits

...

1 Commits

Author SHA1 Message Date
EYHN
27989c6401 fix(core): fix error when switch to local workspace (#6144) 2024-03-15 18:06:34 +08:00
2 changed files with 3 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import { style } from '@vanilla-extract/css';
export const fallbackStyle = style({
margin: '12px 16px',
margin: '5px 16px',
height: '100%',
});
export const fallbackHeaderStyle = style({

View File

@@ -1,5 +1,5 @@
import { WorkspaceFlavour } from '@affine/env/workspace';
import { WorkspaceManager } from '@toeverything/infra';
import { Workspace, WorkspaceManager } from '@toeverything/infra';
import { useService } from '@toeverything/infra/di';
import { useLiveData } from '@toeverything/infra/livedata';
import { useAtom } from 'jotai';
@@ -172,9 +172,7 @@ export const AuthModal = (): ReactElement => {
};
export function CurrentWorkspaceModals() {
const currentWorkspace = useLiveData(
useService(CurrentWorkspaceService).currentWorkspace
);
const currentWorkspace = useService(Workspace);
const [openDisableCloudAlertModal, setOpenDisableCloudAlertModal] = useAtom(
openDisableCloudAlertModalAtom
);