summaryrefslogtreecommitdiffstats
path: root/ui-react
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-04-22 23:10:54 +0200
committersebdet <sebastien.determe@intl.att.com>2020-04-22 23:10:54 +0200
commit614956d2662db39e4daf99da1b8302001bd2d8c2 (patch)
tree8e52927455061af07457be08ad9a79743d6d5d40 /ui-react
parent334ad564f969cb9d3ba1e47f5722ea43c71ee63f (diff)
Fix bug when adding op policy
The fix to prevent multiple op policy modle to be inserted introduced another bug, this pr fixes it Issue-ID: CLAMP-828 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I90432688df48cbf2b456efae5e4191e2909077cc
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);
})
}