浏览代码

fix: TypeError: Cannot read properties of undefined (reading 'viewport' #1761 (#1784)

### 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)
tags/v0.9.0
balibabu 1年前
父节点
当前提交
eea6565472
没有帐户链接到提交者的电子邮件

+ 1
- 1
web/src/pages/add-knowledge/components/knowledge-chunk/components/document-preview/preview.tsx 查看文件

@@ -41,7 +41,7 @@ const Preview = ({ highlights: state, setWidthAndHeight }: IProps) => {

useEffect(() => {
if (state.length > 0) {
ref.current(state[0]);
ref?.current(state[0]);
}
}, [state]);


正在加载...
取消
保存