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

feat/rag-2
twwu 7 months ago
parent de6867f875
commit f677f2f71b

@ -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'>

Loading…
Cancel
Save