mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-27 21:12:16 +03:00
fix: pagelist is null
This commit is contained in:
parent
ab059fcb2b
commit
0441c17e1d
@ -4,9 +4,11 @@ import { PageListHeader } from '@/components/header';
|
||||
import { ReactElement } from 'react';
|
||||
import WorkspaceLayout from '@/components/workspace-layout';
|
||||
import { useTranslation } from '@affine/i18n';
|
||||
import { useAppState } from '@/providers/app-state-provider';
|
||||
import { PageMeta, useAppState } from '@/providers/app-state-provider';
|
||||
const All = () => {
|
||||
const { pageList } = useAppState();
|
||||
const { currentWorkspace } = useAppState();
|
||||
const pageList = (currentWorkspace?.blocksuiteWorkspace?.meta.pageMetas ||
|
||||
[]) as PageMeta[];
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user