From e9164bca5bb27b3855f6b9d536a009cae910ae1b Mon Sep 17 00:00:00 2001 From: Maciej Bodek Date: Fri, 6 Dec 2024 18:33:50 +0100 Subject: [PATCH] fix: auto refresh bug --- packages/web-console/src/scenes/Editor/Metrics/index.tsx | 2 +- packages/web-console/src/scenes/Editor/Metrics/utils.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/web-console/src/scenes/Editor/Metrics/index.tsx b/packages/web-console/src/scenes/Editor/Metrics/index.tsx index 2067215ce..db153d08b 100644 --- a/packages/web-console/src/scenes/Editor/Metrics/index.tsx +++ b/packages/web-console/src/scenes/Editor/Metrics/index.tsx @@ -129,7 +129,7 @@ export const Metrics = () => { const refreshRateInSec = refreshRate ? refreshRate === RefreshRate.AUTO - ? refreshRatesInSeconds[autoRefreshRates[metricDuration]] * 1000 + ? refreshRatesInSeconds[autoRefreshRates[metricDuration]] : refreshRatesInSeconds[refreshRate] : 0 diff --git a/packages/web-console/src/scenes/Editor/Metrics/utils.ts b/packages/web-console/src/scenes/Editor/Metrics/utils.ts index c297aad89..258d681eb 100644 --- a/packages/web-console/src/scenes/Editor/Metrics/utils.ts +++ b/packages/web-console/src/scenes/Editor/Metrics/utils.ts @@ -1,7 +1,5 @@ -import { Grid } from "@styled-icons/remix-line" import { utcToLocal } from "../../../utils/dateTime" import uPlot from "uplot" -import { List } from "@styled-icons/fluentui-system-filled" export enum MetricType { COMMIT_RATE = "Commit rate",