From 05448f50afa5b3dac51b762ae0c092d461a41c59 Mon Sep 17 00:00:00 2001 From: EYHN Date: Fri, 2 Aug 2024 10:40:58 +0000 Subject: [PATCH] fix(core): wrong display of 404 page (#7711) --- .../core/src/pages/workspace/detail-page/detail-page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx b/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx index 0352522ee9827..69de5bde11be2 100644 --- a/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx +++ b/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx @@ -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(null);