diff --git a/packages/component-manuscript/src/components/ManuscriptLayout.js b/packages/component-manuscript/src/components/ManuscriptLayout.js index b9194904d8ae6ba4f02cd3beb2b2a4a8182e2ce4..1c1c770c34bc902301ee10f69d258b407180a8e6 100644 --- a/packages/component-manuscript/src/components/ManuscriptLayout.js +++ b/packages/component-manuscript/src/components/ManuscriptLayout.js @@ -159,7 +159,6 @@ const ManuscriptLayout = ({ {get(currentUser, 'permissions.canMakeDecision', false) && ( <ManuscriptEicDecision formValues={get(formValues, 'eicDecision')} - isFetching={isFetching.recommendationsFetching} messagesLabel={messagesLabel} mt={2} options={ diff --git a/packages/component-manuscript/src/components/ManuscriptPage.js b/packages/component-manuscript/src/components/ManuscriptPage.js index f4da1be387ee8d5712469c099b4d19a80baf4903..a28b8024fce00361293d72b3dbcd0cacbc39d5ee 100644 --- a/packages/component-manuscript/src/components/ManuscriptPage.js +++ b/packages/component-manuscript/src/components/ManuscriptPage.js @@ -32,7 +32,6 @@ import { } from 'pubsweet-components-faraday/src/redux/errors' import { createRecommendation, - recommendationsFetching, selectReviewRecommendations, selectEditorialRecommendations, } from 'pubsweet-components-faraday/src/redux/recommendations' @@ -156,7 +155,6 @@ export default compose( }, isFetching: { editorsFetching: selectFetching(state), - recommendationsFetching: recommendationsFetching(state), }, formValues: { eicDecision: getFormValues('eic-decision')(state), diff --git a/packages/component-manuscript/src/redux/recommendations.js b/packages/component-manuscript/src/redux/recommendations.js index 154e043de88b4100daca4a96da85243fa26ebb20..ca29439df0359cb18192540c09bcaf9610bb826a 100644 --- a/packages/component-manuscript/src/redux/recommendations.js +++ b/packages/component-manuscript/src/redux/recommendations.js @@ -13,8 +13,6 @@ export const selectReviewRecommendations = (state, fragmentId) => r => r.recommendationType === 'review', ) -export const recommendationsFetching = state => - get(state, 'recommendations', false) // #endregion // #region Actions diff --git a/packages/components-faraday/src/redux/recommendations.js b/packages/components-faraday/src/redux/recommendations.js index 4eec8b5a2f3701787ea6446bb1db09b165044a08..26e9ad321a8e2cf9434b9d23196ac25d5f2c69fc 100644 --- a/packages/components-faraday/src/redux/recommendations.js +++ b/packages/components-faraday/src/redux/recommendations.js @@ -24,9 +24,6 @@ export const selectReviewRecommendations = (state, fragmentId) => })) // #endregion -export const recommendationsFetching = state => - get(state, 'recommendations', false) - // #region Actions // error handling and fetching is handled by the autosave reducer export const createRecommendation = ({