Merge branch 'spencer/fix-httpgetter' into 'master'

Fix http getter return format.

See merge request grassrootseconomics/cic-staff-client!25
This commit is contained in:
Blair Vanderlugt 2021-05-18 15:11:46 +00:00
commit 78c4bd5de8

View File

@ -6,7 +6,7 @@ HttpGetter.prototype.get = (filename) =>
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
fetch(filename).then((response) => { fetch(filename).then((response) => {
if (response.ok) { if (response.ok) {
resolve(response.json()); resolve(response.text());
} else { } else {
reject(rejectBody(response)); reject(rejectBody(response));
} }