Commit 65061501dc6e21fab11f6eef7b889e5944555c59
Merge branch 'fix/DEFECT-3072' into 'main_dev'
fix: 产品编辑时,对产品图片进行修改或删除时,无法点击确认按钮 See merge request yunteng/thingskit-front!1524
Showing
1 changed file
with
4 additions
and
1 deletions
@@ -203,7 +203,10 @@ | @@ -203,7 +203,10 @@ | ||
203 | await getDeviceConfFormData(); | 203 | await getDeviceConfFormData(); |
204 | await getTransConfData(); | 204 | await getTransConfData(); |
205 | const isEmptyObj = isEmpty(transportConfData.profileData.transportConfiguration); | 205 | const isEmptyObj = isEmpty(transportConfData.profileData.transportConfiguration); |
206 | - if (Reflect.has(postSubmitFormData.deviceConfData, 'deleteUrl') && values.deleteUrl.deleteUrl) { | 206 | + if ( |
207 | + Reflect.has(postSubmitFormData.deviceConfData, 'deleteUrl') && | ||
208 | + postSubmitFormData.deviceConfData?.deleteUrl | ||
209 | + ) { | ||
207 | await deleteFilePath(postSubmitFormData.deviceConfData?.deleteUrl); | 210 | await deleteFilePath(postSubmitFormData.deviceConfData?.deleteUrl); |
208 | Reflect.deleteProperty(postSubmitFormData.deviceConfData, 'deleteUrl'); | 211 | Reflect.deleteProperty(postSubmitFormData.deviceConfData, 'deleteUrl'); |
209 | } | 212 | } |