Skip to content

Commit

Permalink
fixes #395
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Mar 24, 2017
1 parent 01ee1ba commit 54b25b3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions server/export/annex4.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,9 @@ const TABS = [
activity.grants &&
activity.grants.some(grant => {
return (
grant.grantType === 'collaboratifinternational' ||
grant.grantType === 'individuelinternational'
['ongoing','accepted'].includes(grant.status) &&
(grant.grantType === 'collaboratifinternational' ||
grant.grantType === 'individuelinternational')
);
})
);
Expand All @@ -614,8 +615,9 @@ const TABS = [
activity.grants &&
activity.grants.some(grant => {
return (
grant.grantType === 'collaboratifnational' ||
grant.grantType === 'individuelnational'
['ongoing','accepted'].includes(grant.status) &&
(grant.grantType === 'collaboratifnational' ||
grant.grantType === 'individuelnational')
);
})
);
Expand All @@ -629,8 +631,9 @@ const TABS = [
activity.grants &&
activity.grants.some(grant => {
return (
grant.grantType === 'collaboratifterritorial' ||
grant.grantType === 'individuelterritorial'
['ongoing','accepted'].includes(grant.status) &&
(grant.grantType === 'collaboratifterritorial' ||
grant.grantType === 'individuelterritorial')
);
})
);
Expand All @@ -642,7 +645,9 @@ const TABS = [
return (
!!activity.grants &&
activity.grants &&
activity.grants.some(grant => grant.grantProgram === 'PIA')
activity.grants.some(grant =>
['ongoing','accepted'].includes(grant.status) &&
grant.grantProgram === 'PIA')
);
})
.map(mapper);
Expand All @@ -654,6 +659,7 @@ const TABS = [
activity.grants &&
activity.grants.every(grant => {
return(
['ongoing','accepted'].includes(grant.status) &&
grant.grantProgram !== 'PIA' &&
!['collaboratifterritorial',
'individuelterritorial',
Expand Down

0 comments on commit 54b25b3

Please sign in to comment.