Almost there

This commit is contained in:
Daniel Ledda
2020-11-14 16:16:23 +01:00
parent 4dbd355f7c
commit 73740fe114
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ class ClimateChart {
if (payload.snapshots.length < 0) {
throw new Error("Bad response - no snapshots found!");
}
return await data.json();
return payload;
}
catch (e) {
throw e;