fix: Error run process, output is undefined. (#510)

pull/3759/head
Edwin Betancourt 2020-06-03 16:25:26 -04:00 committed by GitHub
parent dd8baa56bf
commit 19e3690a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -399,7 +399,9 @@ const processControl = {
logs: logList,
output
})
dispatch('setReportTypeToShareLink', processResult.output.reportType)
if (!isEmptyValue(processResult.output)) {
dispatch('setReportTypeToShareLink', processResult.output.reportType)
}
commit('addNotificationProcess', processResult)
resolve(processResult)
})
@ -579,7 +581,9 @@ const processControl = {
output
})
resolve(processResult)
dispatch('setReportTypeToShareLink', processResult.output.reportType)
if (!isEmptyValue(processResult.output)) {
dispatch('setReportTypeToShareLink', processResult.output.reportType)
}
})
.catch(error => {
Object.assign(processResult, {