mirror of
https://github.com/langgenius/dify.git
synced 2025-09-25 17:15:28 +00:00
refactor: update useEffect dependency to include currentPage.page_id for proper content fetching
This commit is contained in:
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…
x
Reference in New Issue
Block a user