From 947af7d0e262bc2be903ff1ee766a252d9d3ddb3 Mon Sep 17 00:00:00 2001 From: "Arul.Nambi" Date: Fri, 21 Sep 2018 10:09:37 -0400 Subject: Fixing the errors on OOM Issue-ID: AAI-1669 Change-Id: Ie47a0fd7ecff6f21f6ffb8f42a962c6652f87a93 Signed-off-by: Arul.Nambi --- src/app/contextHandler/ContextHandlerActions.js | 3 ++- src/app/networking/NetworkCalls.js | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/app') 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) => { -- cgit 1.2.3-korg