fix(缺陷管理): 空字段值回显报错问题

--bug=1050732 --user=宋昌昌 【缺陷管理】项目集成jira-编辑缺陷-缺陷内容为空 https://www.tapd.cn/55049933/s/1635710
This commit is contained in:
song-cc-rock 2024-12-23 18:12:11 +08:00 committed by 刘瑞斌
parent 810c8c5aba
commit 9f5a8e771f
1 changed files with 1 additions and 0 deletions

View File

@ -731,6 +731,7 @@
} else if (MULTIPLE_TYPE.includes(item.type)) { } else if (MULTIPLE_TYPE.includes(item.type)) {
if (!item.value) { if (!item.value) {
tmpObj[item.id] = []; tmpObj[item.id] = [];
return;
} }
const multipleOptions = getOptionFromTemplate( const multipleOptions = getOptionFromTemplate(
currentCustomFields.value.find((filed: any) => item.id === filed.fieldId) currentCustomFields.value.find((filed: any) => item.id === filed.fieldId)