fix: deepscan error and warning (#728)

This commit is contained in:
DiamondThree
2023-01-13 15:25:33 +08:00
committed by GitHub
parent 03ff4c3e3d
commit 7fb5aae8b5
21 changed files with 10 additions and 651 deletions

View File

@@ -105,10 +105,10 @@ export const AppStateProvider = ({
// isOwner is useful only in the cloud
isOwner = true;
} else {
isOwner = workspace?.owner && user?.id === workspace?.owner?.id;
isOwner = workspace.owner && user?.id === workspace.owner.id;
}
const pageList =
(workspace?.blocksuiteWorkspace?.meta.pageMetas as PageMeta[]) ?? [];
(workspace.blocksuiteWorkspace?.meta.pageMetas as PageMeta[]) ?? [];
setAppState({
...appState,
currentWorkspace: workspace,