Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix: read properties of undefined issue (#7708)

Bryan205d33a813bc
diff --git a/web/app/components/datasets/documents/list.tsx b/web/app/components/datasets/documents/list.tsx
index ab602955d74..540474e7a57 100644
--- a/web/app/components/datasets/documents/list.tsx
+++ b/web/app/components/datasets/documents/list.tsx
@@ -405,7 +405,7 @@ const DocumentList: FC<IDocumentListProps> = ({ embeddingAvailable, documents =
<tbody className="text-gray-700">
{localDocs.map((doc) => {
const isFile = doc.data_source_type === DataSourceType.FILE
- const fileType = isFile ? doc.data_source_detail_dict?.upload_file.extension : ''
+ const fileType = isFile ? doc.data_source_detail_dict?.upload_file?.extension : ''
return <tr
key={doc.id}
className={'border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer'}