Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
embl.org
html-sites
embl-jobs-pages
Commits
dcda1286
Commit
dcda1286
authored
Dec 01, 2021
by
Nitin Jadhav
Browse files
Fixed issue to exclude arise from embo
parent
ece8b648
Pipeline
#218960
passed with stages
in 5 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
src/services/useFetchJobsList.js
src/services/useFetchJobsList.js
+14
-5
No files found.
src/services/useFetchJobsList.js
View file @
dcda1286
...
...
@@ -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
"
);
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment