Merge pull request #22 from AAVikings/develop

File does not exist fix
This commit is contained in:
benme authored and GitHub committed 2019-07-07 21:09:06 -03:00
commit facf92d728
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.' }