pull/1265/head
Jared Scheib 2017-04-17 10:55:50 -07:00
parent 72e6147c45
commit 5f1da1af02
2 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,7 @@ export const fetchTimeSeriesAsync = async ({source, db, rp, query}, editQuerySta
const {data} = await proxy({source, db, rp, query: query.text})
return handleSuccess(data, query, editQueryStatus)
} catch (error) {
errorThrown(error) // TODO: use errorsMiddleware to catch 403s first, otherwise query --> config --> error.status will be error obj
errorThrown(error)
handleError(error, query, editQueryStatus)
throw error
}
}

View File

@ -70,6 +70,7 @@ const AutoRefresh = (ComposedComponent) => {
for (const query of queries) {
const {host, database, rp} = query
// TODO: enact this via an action creator so redux will know about it; currently errors are used as responses here
// TODO: may need to make this a try/catch
const response = await fetchTimeSeriesAsync({source: host, db: database, rp, query}, this.props.editQueryStatus)
newSeries.push({response})
count += 1