Skip to content

Commit

Permalink
Gig search not working in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Oct 26, 2023
1 parent 88969d3 commit 4ad08aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/containers/Gigs/RecruitCRMJobs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class RecruitCRMJobsContainer extends React.Component {
locations[0].selected = location === 'All';
// filter
if (location === 'Anywhere' || location === 'Any' || location === 'All') return true;
return location.toLowerCase() === job.country.toLowerCase();
return location.toLowerCase() === (job.country || '').toLowerCase();
});
// sort location dropdown
locations = _.sortBy(locations, ['label']);
Expand All @@ -207,7 +207,7 @@ class RecruitCRMJobsContainer extends React.Component {
const skills = _.find(job.custom_fields, ['field_name', 'Technologies Required']);
if (skills && skills.value && skills.value.toLowerCase().includes(_term)) return true;
// location
if (job.country.toLowerCase().includes(_term)) return true;
if ((job.country || '').toLowerCase().includes(_term)) return true;
// duration
const duration = _.find(job.custom_fields, ['field_name', 'Duration']);
if (duration && duration.value && duration.value.toLowerCase().includes(_term)) return true;
Expand Down

0 comments on commit 4ad08aa

Please sign in to comment.