diff options
author | Christophe Closset <christophe.closset@intl.att.com> | 2020-04-23 08:47:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-23 08:47:44 +0000 |
commit | b954df81bb47b3ff115207a2436f1b61eaeafad2 (patch) | |
tree | 1f813d90d7721621a3a7a95ffd5d1040056ccf19 | |
parent | f1692af8bcc02c6a7335078160463025b85eba68 (diff) | |
parent | 614956d2662db39e4daf99da1b8302001bd2d8c2 (diff) |
Merge "Fix bug when adding op policy"
-rw-r--r-- | ui-react/src/api/LoopService.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-react/src/api/LoopService.js b/ui-react/src/api/LoopService.js index 3b9ed86fa..8f9805e33 100644 --- a/ui-react/src/api/LoopService.js +++ b/ui-react/src/api/LoopService.js @@ -233,9 +233,9 @@ export default class LoopService { return response.text(); } }) - .then(function (object) { + .catch(function (error) { console.error("Add Operational Policy query failed"); - throw new Error(object); + throw new Error(error); }) } |