summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Blimkie <Steven.Blimkie@amdocs.com>2018-09-25 13:51:50 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-25 13:51:50 +0000
commitec1670e00f0abec2c7a28a9c0a79ffecd06f24c4 (patch)
tree5ce587b7a9cad511c99e0cacadc4e5673ff6061b
parent71b5923e74bd75f8fbfd610d23f94fdc013513da (diff)
parent947af7d0e262bc2be903ff1ee766a252d9d3ddb3 (diff)
Merge "Fixing the errors on OOM"
-rw-r--r--src/app/contextHandler/ContextHandlerActions.js3
-rw-r--r--src/app/networking/NetworkCalls.js4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/app/contextHandler/ContextHandlerActions.js b/src/app/contextHandler/ContextHandlerActions.js
index b4805e1..f3ede6d 100644
--- a/src/app/contextHandler/ContextHandlerActions.js
+++ b/src/app/contextHandler/ContextHandlerActions.js
@@ -105,7 +105,8 @@ function fetchSubscriptionPayload(fetchRequestCallback) {
export function getSubscriptionPayload() {
let externalfetchRequest =
- () => networkCall.getRequest(SUBSCRIPTION_PAYLOAD_URL, GET);
+ () => networkCall.getRequest(SUBSCRIPTION_PAYLOAD_URL, GET);
+
return dispatch => {
dispatch(fetchSubscriptionPayload(externalfetchRequest));
};
diff --git a/src/app/networking/NetworkCalls.js b/src/app/networking/NetworkCalls.js
index e391391..9bf7535 100644
--- a/src/app/networking/NetworkCalls.js
+++ b/src/app/networking/NetworkCalls.js
@@ -55,9 +55,7 @@ function getRequest(URL, GET) {
return fetch(URL, {
credentials: 'same-origin',
method: GET
- }).then(
- (response) => response.json()
- );
+ });
}
const genericRequest = (url, relativeURL, httpMethodType) => {