File does not exist fix

This commit is contained in:
Matias authored and Matias committed 2019-07-07 21:02:45 -03:00
1 parent c221a6c4e6
commit c95dd3bc63
1 file changed
+5 -3
+5 -3
View File
@@ -49,10 +49,12 @@ function newFileStorage() {
return
}
let response = res.data.data.web_FileContent
if (response)
if (response){
callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE, response)
else
callBackFunction(GLOBAL.CUSTOM_FAIL_RESPONSE)
} else {
let error = { code: 'The specified key does not exist.' }
callBackFunction(error)
}
}).catch(error => {
if (error.message === 'Request aborted' || error.message === 'Network Error') {
let error = { code: 'The specified key does not exist.' }