fix(core): wrong display of 404 page (#7711)

This commit is contained in:
EYHN
2024-08-02 10:40:58 +00:00
parent e54be7dc02
commit 05448f50af

View File

@@ -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);