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

2
webapp/dist/main.js vendored

File diff suppressed because one or more lines are too long

View File

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