Skip to content
Snippets Groups Projects
Commit ec19cb4b authored by Jose Francisco Pena Estrada's avatar Jose Francisco Pena Estrada
Browse files

feat: when filtering jobs in a specific location, include jobs available in all sites

parent e86e95ff
No related branches found
No related tags found
1 merge request!96#598961 - EBI jobs page - Display available jobs in all sites
Pipeline #298840 passed with warnings with stages
in 4 minutes and 55 seconds
......@@ -22,7 +22,9 @@ export function useFetchJobsList(filters, jobLocation) {
if (data && data.length) {
const dataAtLocation = jobLocation
? data.filter((datum) =>
datum.field_jobs_duty_station.includes(jobLocation)
datum.field_jobs_duty_station.includes(jobLocation) ||
// RT ticket #598961 - display jobs available in all sites
datum.field_jobs_duty_station.includes("All EMBL Sites")
)
: data;
let extendedJobs = extendJobsObjects(dataAtLocation); //remove nulls due to potential error while extending
......
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