Commit 41ffbd00 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents 588d80ec c1d9da5f
...@@ -173,7 +173,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -173,7 +173,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
faultFileList, faultFileList,
supplierName, supplierName,
...rest, ...rest,
fileList: faultFileList.map(item => normalizeFiledata(item.filePath)), fileList: faultFileList ? faultFileList.map(item => normalizeFiledata(item.filePath)) : [],
repairAddress: isJSONStr(repairAddress) || null, repairAddress: isJSONStr(repairAddress) || null,
}); });
} }
......
...@@ -286,7 +286,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -286,7 +286,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
setDetailInfo({ setDetailInfo({
faultFileList, faultFileList,
fileList: faultFileList.map(item => normalizeFiledata(item.filePath)), fileList: faultFileList?.map(item => normalizeFiledata(item.filePath)),
...rest, ...rest,
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment