Do not refetch if jobs array is not empty

pull/5871/head
Berkeley Martinez 2016-01-05 12:24:41 -08:00
parent 6cbcc08c9f
commit 8e1f8d2159
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ export default contain(
return { jobs, showModal };
},
fetchAction: 'jobActions.getJobs',
isPrimed({ jobs = [] }) {
return !!jobs.length;
},
actions: [
'appActions',
'jobActions'