From f677f2f71b18afef91f2797f61e00a8edd1fefcf Mon Sep 17 00:00:00 2001 From: twwu Date: Thu, 10 Jul 2025 16:27:56 +0800 Subject: [PATCH] refactor: update useEffect dependency to include currentPage.page_id for proper content fetching --- .../create-from-pipeline/preview/online-document-preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx b/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx index 9f1667b9bf..34cc16c4b7 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/preview/online-document-preview.tsx @@ -46,7 +46,7 @@ const OnlineDocumentPreview = ({ }, }) // eslint-disable-next-line react-hooks/exhaustive-deps - }, []) + }, [currentPage.page_id]) return (