Merge "Fix bug when adding op policy"
authorChristophe Closset <christophe.closset@intl.att.com>
Thu, 23 Apr 2020 08:47:44 +0000 (08:47 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 23 Apr 2020 08:47:44 +0000 (08:47 +0000)
ui-react/src/api/LoopService.js

index 3b9ed86..8f9805e 100644 (file)
@@ -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);
                        })
        }