diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-04-22 23:10:54 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2020-04-22 23:10:54 +0200 |
commit | 614956d2662db39e4daf99da1b8302001bd2d8c2 (patch) | |
tree | 8e52927455061af07457be08ad9a79743d6d5d40 /ui-react/src/api/LoopService.js | |
parent | 334ad564f969cb9d3ba1e47f5722ea43c71ee63f (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/src/api/LoopService.js')
-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); }) } |