mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? fix: TypeError: Cannot read properties of undefined (reading 'viewport' #1761 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -41,7 +41,7 @@ const Preview = ({ highlights: state, setWidthAndHeight }: IProps) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (state.length > 0) {
|
||||
ref.current(state[0]);
|
||||
ref?.current(state[0]);
|
||||
}
|
||||
}, [state]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user