From 422d971258c695ef2671c3149e63bf8eca6f7640 Mon Sep 17 00:00:00 2001 From: Shawn Date: Sun, 16 Dec 2018 01:39:34 -0600 Subject: [PATCH] Remove old log statements --- server/render/handleShowRender.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/render/handleShowRender.jsx b/server/render/handleShowRender.jsx index c7aa4839..4f43a400 100644 --- a/server/render/handleShowRender.jsx +++ b/server/render/handleShowRender.jsx @@ -20,11 +20,11 @@ const createCanonicalLink = require('../../utils/createCanonicalLink'); const getCanonicalUrlFromShow = show => { const requestId = show.requestList[show.request.id]; const requestType = show.request.type; - + if (!requestId || !requestType) { return null; } - + switch (requestType) { case 'ASSET_DETAILS': const asset = show.assetList[requestId.key]; @@ -57,7 +57,7 @@ export default (req, res) => { // Workaround, remove when a solution for async httpContext exists const showState = store.getState().show; const assetKeys = Object.keys(showState.assetList); - + if(assetKeys.length !== 0) { res.claimId = showState.assetList[assetKeys[0]].claimId; } else { @@ -98,9 +98,7 @@ export default (req, res) => { if (runSaga) { // create and apply middleware const sagaMiddleware = createSagaMiddleware(); - console.log('saga') const middleware = applyMiddleware(sagaMiddleware); - console.log('sagaend') // create a new Redux store instance const store = createStore(Reducers, middleware);