Skip to content

Commit e694f91

Browse files
authored
Fix for the unwanted flashing during the re-rendering of the utilization components (#6057)
1 parent a16568e commit e694f91

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ui/packages/shared/profile/src/MetricsGraph/UtilizationMetrics/Throughput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ const AreaChart = ({
372372
<motion.div
373373
className="w-full relative"
374374
key="area-chart-graph-loaded"
375-
initial={{display: 'none', opacity: 0}}
375+
initial={false}
376376
animate={{display: 'block', opacity: 1}}
377377
transition={{duration: 0.5}}
378378
>

ui/packages/shared/profile/src/MetricsGraph/UtilizationMetrics/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ const UtilizationMetrics = ({
396396
<motion.div
397397
className="w-full relative"
398398
key="utilization-metrics-graph-loaded"
399-
initial={{display: 'none', opacity: 0}}
399+
initial={false}
400400
animate={{display: 'block', opacity: 1}}
401401
transition={{duration: 0.5}}
402402
>

ui/packages/shared/profile/src/ProfileSelector/MetricsGraphSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export function MetricsGraphSection({
213213
to={querySelection.to}
214214
utilizationMetricsLoading={utilizationMetricsLoading}
215215
selectedSeries={undefined}
216-
onSeriesClick={(name, seriesIndex) => {
216+
onSeriesClick={(_, seriesIndex) => {
217217
// For throughput metrics, just pass the series index
218218
if (onUtilizationSeriesSelect != null) {
219219
let name = 'gpu_pcie_throughput_transmit_bytes';

0 commit comments

Comments
 (0)