(ui): Fix parseDuration helper

This commit is contained in:
Ken Hibino
2021-12-02 07:39:00 -08:00
parent 7692f6bb85
commit 9964cc27b4
3 changed files with 9 additions and 5 deletions

View File

@@ -31,6 +31,12 @@ export function getMetricsAsync(endTime: number, duration: number) {
return async (dispatch: Dispatch<MetricsActionTypes>) => {
dispatch({ type: GET_METRICS_BEGIN });
try {
console.log(
"DEBUG: fetching with endtime=",
endTime,
" duration=",
duration
);
const response = await getMetrics(endTime, duration);
dispatch({ type: GET_METRICS_SUCCESS, payload: response });
} catch (error) {