diff --git a/app/app.js b/app/app.js index 37e5058828f4026cfd3985885e54c5c1c705f583..cfaebde30831f627a57dbe2e51b2a88dc9fefb51 100644 --- a/app/app.js +++ b/app/app.js @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import createHistory from 'history/createBrowserHistory' import { withClientState } from 'apollo-link-state' -import { defaultsDeep } from 'lodash' import { configureStore, Root } from 'pubsweet-client' @@ -16,9 +15,10 @@ const history = createHistory() const store = configureStore(history, {}) const makeApolloConfig = ({ cache, link, ...config }) => { - const clientStateLink = withClientState( - defaultsDeep({ cache }, AuthorDetailsSchema.clientStateConfig), - ) + const clientStateLink = withClientState({ + cache, + ...AuthorDetailsSchema.clientStateConfig, + }) return { cache,