Skip to content

Commit

Permalink
Fix jobs display and priming
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkeley Martinez authored and Berkeley Martinez committed Mar 4, 2016
1 parent f6c1260 commit 5ee8029
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/app/routes/Jobs/components/Jobs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const bindableActions = {
const fetchOptions = {
fetchAction: 'fetchJobs',
isPrimed({ jobs }) {
return !!jobs.results.length;
return !!jobs.length;
}
};

Expand Down
2 changes: 1 addition & 1 deletion common/app/utils/professor-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function contain(options = {}, Component) {
options.getActionArgs :
(() => []);

const isPrimed = typeof typeof options.isPrimed === 'function' ?
const isPrimed = typeof options.isPrimed === 'function' ?
options.isPrimed :
(() => false);

Expand Down
2 changes: 1 addition & 1 deletion server/services/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function getJobServices(app) {
return Job.findById(id, cb);
}
Job.find(whereFilt, (err, jobs) => {
cb(err, jobs);
cb(err, jobs.map(job => job.toJSON()));
});
}
};
Expand Down

0 comments on commit 5ee8029

Please sign in to comment.