mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-19 14:49:10 +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:
parent
3f21603558
commit
eea6565472
@ -41,7 +41,7 @@ const Preview = ({ highlights: state, setWidthAndHeight }: IProps) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (state.length > 0) {
|
||||
ref.current(state[0]);
|
||||
ref?.current(state[0]);
|
||||
}
|
||||
}, [state]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user