diff --git a/common/app/routes/Jobs/components/Show.jsx b/common/app/routes/Jobs/components/Show.jsx index 43bb22c667..99f473d14f 100644 --- a/common/app/routes/Jobs/components/Show.jsx +++ b/common/app/routes/Jobs/components/Show.jsx @@ -13,8 +13,16 @@ export default contain( { store: 'jobsStore', fetchAction: 'jobActions.getJob', + map({ currentJob }) { + return { + job: currentJob + }; + }, getPayload({ params }) { return { id: params.id }; + }, + shouldContainerFetch({ currentJob = {} }, { currentJob: nextJob = {}}) { + return currentJob.id !== nextJob.id; } }, React.createClass({