Skip to content

Commit

Permalink
fix(country page): filter
Browse files Browse the repository at this point in the history
  • Loading branch information
miarkt committed Jan 24, 2024
1 parent efdc207 commit 55a42cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/country/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function Fiche({ exportState }) {
const { data, isLoading, error, isUnknownCountry } = useFetchData(isoCode);
let actorName = '';

const dataPays = data['curiexplore-pays']?.find((country) => country.fields.iso3 === isoCode).fields;
const dataPays = data['curiexplore-pays']?.filter((country) => country.fields.curiexplore === 'TRUE').find((country) => country.fields.iso3 === isoCode).fields;
const dataTimestamp = data['curiexplore-timestamp']?.[0]?.fields;
const campusFrance = dataPays?.cf_mobility;

Expand Down

0 comments on commit 55a42cd

Please sign in to comment.