From fc4af3921021cefc4048d1b799197ebcd9f53926 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 5 Jan 2016 12:24:41 -0800 Subject: [PATCH] Do not refetch if jobs array is not empty --- common/app/routes/Jobs/components/Jobs.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/app/routes/Jobs/components/Jobs.jsx b/common/app/routes/Jobs/components/Jobs.jsx index b648eeb80f..676cd8790a 100644 --- a/common/app/routes/Jobs/components/Jobs.jsx +++ b/common/app/routes/Jobs/components/Jobs.jsx @@ -11,6 +11,9 @@ export default contain( return { jobs, showModal }; }, fetchAction: 'jobActions.getJobs', + isPrimed({ jobs = [] }) { + return !!jobs.length; + }, actions: [ 'appActions', 'jobActions'