Skip to content

Commit

Permalink
auto unit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Dec 13, 2024
1 parent 215c853 commit ad2e638
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/web-console/src/scenes/Editor/Metrics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ export const Metrics = () => {
})
if (metricDuration) {
metricDurationRef.current = metricDuration
if (refreshRate === RefreshRate.AUTO) {
setupListeners()
}
}
if (metricDuration && refreshRate && metricViewMode && sampleBy) {
updateBuffer(buffer.id, merged)
Expand Down
2 changes: 2 additions & 0 deletions packages/web-console/src/scenes/Schema/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import {
MetricDuration,
MetricViewMode,
RefreshRate,
SampleBy,
} from "../../scenes/Editor/Metrics/utils"

type Props = Readonly<{
Expand Down Expand Up @@ -283,6 +284,7 @@ const Schema = ({
metricDuration: MetricDuration.ONE_HOUR,
refreshRate: RefreshRate.AUTO,
viewMode: MetricViewMode.GRID,
sampleBy: SampleBy.AUTO,
},
})
}
Expand Down

0 comments on commit ad2e638

Please sign in to comment.