Skip to content

Commit

Permalink
Merge pull request #2295 from eurodatacube/nasa_fix
Browse files Browse the repository at this point in the history
fix: updated acces to return data from nasa api
  • Loading branch information
santilland authored Jul 31, 2023
2 parents 3452856 + 9d877c4 commit fb03af7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/helpers/customAreaObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ export const fetchCustomAreaObjects = async (
// We take here fulfilled datasets, rejected status is probably from timeout
if (entry.status === 'fulfilled' && 'properties' in entry.value
&& 'statistics' in entry.value.properties) {
d = entry.value.properties.statistics['1'];
const stats = entry.value.properties.statistics;
d = entry.value.properties.statistics[Object.keys(stats)[0]];
d.time = entry.value.time;
}
return d;
Expand Down

0 comments on commit fb03af7

Please sign in to comment.