Skip to content

Commit

Permalink
fix(data): api call
Browse files Browse the repository at this point in the history
  • Loading branch information
miarkt committed Apr 16, 2024
1 parent a535376 commit dfe79de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/pages/country/components/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ExportPage() {
policyBlocs.push(dataAnalyse.find((el) => (el.fields.codethematique === 'A3'))?.fields || null);
policyBlocs.push(dataAnalyse.find((el) => (el.fields.codethematique === 'A4'))?.fields || null);
dataES = dataAnalyse.find((el) => (el.fields.codethematique === 'A5'))?.fields || null;
dataRI = dataAnalyse.find((el) => (el.fields.codethematique === 'A6')).fields || null;
dataRI = dataAnalyse.find((el) => (el.fields.codethematique === 'A6'))?.fields || null;

cooperationBlocs.push(dataAnalyse.find((el) => (el.fields.codethematique === 'A7'))?.fields || null);
cooperationBlocs.push(dataAnalyse.find((el) => (el.fields.codethematique === 'A8'))?.fields || null);
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/country/components/research/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function CountryResearchPage() {
const charts2nd = charts.filter((indic) => indic.theme === 'personnel');

if (data.length !== 0) {
dataRI = data.find((el) => (el.fields.codethematique === 'A6')).fields || null;
dataRI = data.find((el) => (el.fields.codethematique === 'A6'))?.fields || null;
} else {
dataRI = '';
}
Expand Down

0 comments on commit dfe79de

Please sign in to comment.