Skip to content

Commit

Permalink
Omit coordinates property when no data exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Initsogar committed Jan 31, 2025
1 parent 15af789 commit f5d779a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/state/stats/lists/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export const normalizers = {
countryCode: viewData.country_code,
value: viewData.views,
region: country.map_region,
coordinates: viewData.coordinates ?? null,
...( viewData.coordinates && { coordinates: viewData.coordinates } ),
};
} );
},
Expand Down

0 comments on commit f5d779a

Please sign in to comment.