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 | } |