|
|
|
@ -90,8 +90,7 @@ export class DecisionApi implements Api {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return new Promise((resolve, rejected) => { |
|
|
|
|
this.addEventListener(editStatusEvent.OPEN, res => { |
|
|
|
|
const data = JSON.parse(res.data); |
|
|
|
|
this.addEventListener(editStatusEvent.OPEN, data => { |
|
|
|
|
|
|
|
|
|
if (data.errorCode) { |
|
|
|
|
let errorMessage = ''; |
|
|
|
@ -111,7 +110,7 @@ export class DecisionApi implements Api {
|
|
|
|
|
}); |
|
|
|
|
rejected(data); |
|
|
|
|
} else { |
|
|
|
|
resolve(res); |
|
|
|
|
resolve(data); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|