From 78df407e1e18d258635c071329258dee3fc8fd20 Mon Sep 17 00:00:00 2001 From: Curtis ROck Date: Thu, 30 Jul 2020 21:55:17 -0500 Subject: [PATCH] remarked out a case, due to that case being triggered during a Soapbox settings save event, which needs debugging. Post to AdminConfig fails with 400 Bad Request response. --- app/soapbox/reducers/soapbox.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/soapbox/reducers/soapbox.js b/app/soapbox/reducers/soapbox.js index a039accd5..c6101abdf 100644 --- a/app/soapbox/reducers/soapbox.js +++ b/app/soapbox/reducers/soapbox.js @@ -2,6 +2,7 @@ import { SOAPBOX_CONFIG_REQUEST_SUCCESS, SOAPBOX_CONFIG_REQUEST_FAIL, SOAPBOX_POST_SUCCESS, + SOAPBOX_POST_REQUEST, } from '../actions/soapbox'; import { Map as ImmutableMap, fromJS } from 'immutable'; @@ -17,9 +18,11 @@ export default function soapbox(state = initialState, action) { return defaultState.merge(ImmutableMap(fromJS(action.soapboxConfig))); case SOAPBOX_CONFIG_REQUEST_FAIL: return defaultState; + case SOAPBOX_POST_REQUEST: case SOAPBOX_POST_SUCCESS: - const soapbox = ImmutableMap(fromJS(action.soapboxConfig)).configs[0].value[0].tuple[1]; - return soapbox; + // const soapbox = ImmutableMap(fromJS(action.soapboxConfig)).configs[0].value[0].tuple[1]; + // return soapbox; + return defaultState; default: return state; }