mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
fix(core): wrong display of 404 page (#7711)
This commit is contained in:
@@ -307,7 +307,7 @@ export const DetailPage = ({ pageId }: { pageId: string }): ReactElement => {
|
||||
const docsService = useService(DocsService);
|
||||
const docRecordList = docsService.list;
|
||||
const docListReady = useLiveData(docRecordList.isReady$);
|
||||
const docRecord = docRecordList.doc$(pageId).value;
|
||||
const docRecord = useLiveData(docRecordList.doc$(pageId));
|
||||
|
||||
const [doc, setDoc] = useState<Doc | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user