refactor: update useEffect dependency to include currentPage.page_id for proper content fetching

This commit is contained in:
twwu 2025-07-10 16:27:56 +08:00
parent de6867f875
commit f677f2f71b

View File

@ -46,7 +46,7 @@ const OnlineDocumentPreview = ({
},
})
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}, [currentPage.page_id])
return (
<div className='flex h-full w-full flex-col rounded-t-xl border-l border-t border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5'>