Showing
1 changed file
with
4 additions
and
1 deletions
... | ... | @@ -203,7 +203,10 @@ |
203 | 203 | await getDeviceConfFormData(); |
204 | 204 | await getTransConfData(); |
205 | 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 | 210 | await deleteFilePath(postSubmitFormData.deviceConfData?.deleteUrl); |
208 | 211 | Reflect.deleteProperty(postSubmitFormData.deviceConfData, 'deleteUrl'); |
209 | 212 | } | ... | ... |