mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-18 19:46:44 +08:00
### What problem does this PR solve? fix: display specific error message when previewing file error #868 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -5,7 +5,7 @@ import { useFetchDocx } from '../hooks';
|
||||
import styles from './index.less';
|
||||
|
||||
const Docx = ({ filePath }: { filePath: string }) => {
|
||||
const { succeed, containerRef } = useFetchDocx(filePath);
|
||||
const { succeed, containerRef, error } = useFetchDocx(filePath);
|
||||
|
||||
return (
|
||||
<>
|
||||
@ -16,7 +16,7 @@ const Docx = ({ filePath }: { filePath: string }) => {
|
||||
</div>
|
||||
</section>
|
||||
) : (
|
||||
<FileError></FileError>
|
||||
<FileError>{error}</FileError>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user