summaryrefslogtreecommitdiffstats
path: root/ui-react
diff options
context:
space:
mode:
authorChristophe Closset <christophe.closset@intl.att.com>2020-04-23 08:47:44 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-23 08:47:44 +0000
commitb954df81bb47b3ff115207a2436f1b61eaeafad2 (patch)
tree1f813d90d7721621a3a7a95ffd5d1040056ccf19 /ui-react
parentf1692af8bcc02c6a7335078160463025b85eba68 (diff)
parent614956d2662db39e4daf99da1b8302001bd2d8c2 (diff)
Merge "Fix bug when adding op policy"
Diffstat (limited to 'ui-react')
-rw-r--r--ui-react/src/api/LoopService.js4
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);
})
}