From 0c998e11969907061ea9baa2d359dadbee3ac58e Mon Sep 17 00:00:00 2001 From: David Erwin Date: Fri, 11 Nov 2016 11:15:11 -0500 Subject: [PATCH] Lint --- client/coral-framework/store/actions/config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/coral-framework/store/actions/config.js b/client/coral-framework/store/actions/config.js index 800017102..f131b8c82 100644 --- a/client/coral-framework/store/actions/config.js +++ b/client/coral-framework/store/actions/config.js @@ -16,8 +16,9 @@ export const FETCH_CONFIG_SUCCESS = 'FETCH_CONFIG_SUCCESS'; export function fetchConfig () { return (dispatch) => { + dispatch({type: FETCH_CONFIG_REQUEST}); - console.log('Fetching settings'); + return fetch('/api/v1/settings') .then( response => { @@ -26,11 +27,11 @@ export function fetchConfig () { } ) .then((json) => { - console.log(json); return dispatch({type: FETCH_CONFIG_SUCCESS, config: fromJS(json)}); - }).catch((error) => { - console.log(error); + }) + .catch((error) => { dispatch({type: FETCH_CONFIG_FAILED, error}); }); + }; }