Skip to content

Commit

Permalink
working on TypeScript Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JDemlow committed May 21, 2024
1 parent c1c6630 commit 495fd62
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 2 deletions.
137 changes: 137 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"axios": "^1.7.1",
"d3": "^7.8.5",
"data-forge": "^1.10.2",
"dataframe-js": "^1.4.4",
"env-cmd": "^10.1.0",
"history": "^5.3.0",
"html2canvas": "^1.4.1",
Expand Down Expand Up @@ -59,6 +60,7 @@
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^15.0.7",
"@types/d3": "^7.4.0",
"@types/dataframe-js": "^1.4.3",
"@types/lodash": "^4.17.4",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
Expand Down Expand Up @@ -118,4 +120,4 @@
"last 1 safari version"
]
}
}
}
3 changes: 2 additions & 1 deletion frontend/src/data/providers/MaternalMortalityProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ class MaternalMortalityProvider extends VariableProvider {
const consumedDatasetIds = [datasetId];
let df = maternalMortalityDataset.toDataFrame();


// Filter by geography
df = this.filterByGeo(df, breakdowns);

if (df.toArray().length === 0) {
return new MetricQueryResponse([], consumedDatasetIds);
}
df = this.renameGeoColumns(df, breakdowns);

// Apply demographic breakdown filters
df = this.applyDemographicBreakdownFilters(df, breakdowns);
df = this.removeUnrequestedColumns(df, metricQuery);

Expand Down

0 comments on commit 495fd62

Please sign in to comment.