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