summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorArul.Nambi <arul.nambi@amdocs.com>2018-09-21 10:09:37 -0400
committerArul.Nambi <arul.nambi@amdocs.com>2018-09-21 10:09:52 -0400
commit947af7d0e262bc2be903ff1ee766a252d9d3ddb3 (patch)
tree45b1ac35834ab3c70a2af11bf96ff017d6e8d971 /src/app
parent21ab8d88d55d264eff83d628ba924e95cff52fc4 (diff)
Fixing the errors on OOM
Issue-ID: AAI-1669 Change-Id: Ie47a0fd7ecff6f21f6ffb8f42a962c6652f87a93 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
Diffstat (limited to 'src/app')
-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) => {