mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-11 04:01:15 -04:00
Do not refetch if jobs array is not empty
This commit is contained in:
@@ -11,6 +11,9 @@ export default contain(
|
||||
return { jobs, showModal };
|
||||
},
|
||||
fetchAction: 'jobActions.getJobs',
|
||||
isPrimed({ jobs = [] }) {
|
||||
return !!jobs.length;
|
||||
},
|
||||
actions: [
|
||||
'appActions',
|
||||
'jobActions'
|
||||
|
||||
Reference in New Issue
Block a user