Commit dcda1286 authored by Nitin Jadhav's avatar Nitin Jadhav
Browse files

Fixed issue to exclude arise from embo

parent ece8b648
Pipeline #218960 passed with stages
in 5 minutes and 26 seconds
......@@ -85,12 +85,22 @@ export function useFetchJobsList(filters, jobLocation) {
if (selectedLocations.length) {
newFilteredJobs = newFilteredJobs.filter((job) =>
selectedLocations.find((location) => {
/*
* Exception: when job title contains arise (fellowship), dont show it under EMBO location
* This was a requirement from Lenka Stejskal, HR Recruitment Partner | EMBL Recruitment
* Tracked here: https://trello.com/c/p7lty9fI/204-hiding-arise-fellowships-under-embo-location-filter
*/
if (
job.$lowercase_title.includes("arise") &&
(location === "EMBO" || job.field_jobs_group === "EMBO")
) {
return false;
}
return (
(location === "EMBO" && job.field_jobs_group === "EMBO") ||
job.$lowercase_field_jobs_duty_station.includes(location) ||
job.$stripped_field_jobs_duty_station.includes(
"All EMBL Sites (Germany, UK, France, Italy, Spain)"
)
job.$stripped_field_jobs_duty_station.includes("All EMBL Sites")
);
})
);
......@@ -132,8 +142,7 @@ const getJobsAtLocationCount = (jobsList, locationKey) => {
return (
(locationKey === "EMBO" && field_jobs_group === "EMBO") ||
$lowercase_field_jobs_duty_station.includes(lowercaseKey) ||
$stripped_field_jobs_duty_station ===
"All EMBL Sites (Germany, UK, France, Italy, Spain)"
$stripped_field_jobs_duty_station === "All EMBL Sites"
);
}
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment