Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NDC Enhancement page crashing/not loading #1667

Merged
merged 6 commits into from
Jul 5, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const getPreviousComparisonCountryValues = createSelector(
[getPreviousComparisonIndicators, getISOCountries],
(previousComparisonIndicators, isos) => {
if (!previousComparisonIndicators) return null;
const previousComparisonCountryValues = {};
const previousComparisonCountryValues = [];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an object. We are adding attributes to it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching that.

isos.forEach(iso => {
previousComparisonCountryValues[
iso
Expand Down