Skip to content

Commit

Permalink
#282 fixed missing error on script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Apr 25, 2020
1 parent aaf8687 commit 038d6d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web-src/src/main-app/store/scriptExecutionManager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {deepCloneObject, forEachKeyValue, isEmptyArray, isEmptyString, isNull} from '@/common/utils/common';
import axios from 'axios';
import clone from 'lodash/clone';
import get from 'lodash/get';
import scriptExecutor, {STATUS_EXECUTING, STATUS_FINISHED, STATUS_INITIALIZING} from './scriptExecutor';

export default {
Expand Down Expand Up @@ -141,8 +142,8 @@ export default {

})
.catch(error => {
const status = _.get(error, 'response.status');
let data = _.get(error, 'response.data');
const status = get(error, 'response.status');
let data = get(error, 'response.data');
if (isNull(error.response) || isEmptyString(data)) {
data = 'Connection error. Please contact the system administrator';
}
Expand Down

0 comments on commit 038d6d7

Please sign in to comment.