Skip to content

Commit

Permalink
fix(dashboard-renderer): golden signals renderer refresh interval (#1276
Browse files Browse the repository at this point in the history
)
  • Loading branch information
filipgutica authored Mar 21, 2024
1 parent f0adf5e commit 08532d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type { MetricCardOptions, RendererProps } from '../types'
import { MetricsProviderInternal, MetricsConsumer } from '@kong-ui-public/analytics-metric-provider'
import { computed, type Ref } from 'vue'
import { GranularityKeys, Timeframe, TimePeriods } from '@kong-ui-public/analytics-utilities'
import { DEFAULT_TILE_REFRESH_INTERVAL_MS } from '../constants'
// Unlike AnalyticsChart, the metric card package doesn't currently expose its options
// in a convenient interface.
Expand Down Expand Up @@ -53,7 +54,7 @@ const options = computed<ProviderProps>(() => ({
longCardTitles: props.chartOptions.longCardTitles,
description: props.chartOptions.description,
hasTrendAccess: true,
refreshInterval: 0,
refreshInterval: props.context.refreshInterval ?? DEFAULT_TILE_REFRESH_INTERVAL_MS,
}))
</script>

Expand Down

0 comments on commit 08532d4

Please sign in to comment.