Просмотр исходного кода

Fix: read properties of undefined issue (#7708)

Co-authored-by: libing <libing@healink.cn>
tags/0.7.3
Bryan 1 год назад
Родитель
Сommit
205d33a813
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      web/app/components/datasets/documents/list.tsx

+ 1
- 1
web/app/components/datasets/documents/list.tsx Просмотреть файл

<tbody className="text-gray-700"> <tbody className="text-gray-700">
{localDocs.map((doc) => { {localDocs.map((doc) => {
const isFile = doc.data_source_type === DataSourceType.FILE 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 return <tr
key={doc.id} key={doc.id}
className={'border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer'} className={'border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer'}

Загрузка…
Отмена
Сохранить