mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 04:36:01 +08:00
### What problem does this PR solve? Fix: Chat Assistant page goes blank #4566 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
3411d0a2ce
commit
efbaa484d7
@ -54,7 +54,8 @@ const MarkdownContent = ({
|
||||
}, [content, loading, t]);
|
||||
|
||||
useEffect(() => {
|
||||
setDocumentIds(reference?.doc_aggs?.map((x) => x.doc_id) ?? []);
|
||||
const docAggs = reference?.doc_aggs;
|
||||
setDocumentIds(Array.isArray(docAggs) ? docAggs.map((x) => x.doc_id) : []);
|
||||
}, [reference, setDocumentIds]);
|
||||
|
||||
const handleDocumentButtonClick = useCallback(
|
||||
|
Loading…
x
Reference in New Issue
Block a user