Clean up
parent
72e6147c45
commit
5f1da1af02
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue