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