Commit c1d9da5f authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复页面报错的问题

parent 7ce5b41d
......@@ -173,7 +173,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
faultFileList,
supplierName,
...rest,
fileList: faultFileList.map(item => normalizeFiledata(item.filePath)),
fileList: faultFileList ? faultFileList.map(item => normalizeFiledata(item.filePath)) : [],
repairAddress: isJSONStr(repairAddress) || null,
});
}
......
......@@ -286,7 +286,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
setDetailInfo({
faultFileList,
fileList: faultFileList.map(item => normalizeFiledata(item.filePath)),
fileList: faultFileList?.map(item => normalizeFiledata(item.filePath)),
...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