File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
site/src/modules/workspaces/WorkspaceTiming Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,14 @@ export const ResourcesChart: FC<ResourcesChartProps> = ({
9090 < YAxisHeader > { stage . name } stage</ YAxisHeader >
9191 < YAxisLabels >
9292 { visibleTimings . map ( ( t ) => {
93- const label = isStageBoundary ( t . name ) ? "total stage duration" : t . name
94- return < YAxisLabel key = { label } id = { encodeURIComponent ( t . name ) } >
95- { label }
96- </ YAxisLabel >
93+ const label = isStageBoundary ( t . name )
94+ ? "total stage duration"
95+ : t . name ;
96+ return (
97+ < YAxisLabel key = { label } id = { encodeURIComponent ( t . name ) } >
98+ { label }
99+ </ YAxisLabel >
100+ ) ;
97101 } ) }
98102 </ YAxisLabels >
99103 </ YAxisSection >
@@ -105,7 +109,7 @@ export const ResourcesChart: FC<ResourcesChartProps> = ({
105109 const stageBoundary = isStageBoundary ( t . name ) ;
106110 const duration = calcDuration ( t . range ) ;
107111 const legend = legendsByAction [ t . action ] ?? { label : t . action } ;
108- const label = stageBoundary ? "total stage duration" : t . name
112+ const label = stageBoundary ? "total stage duration" : t . name ;
109113
110114 return (
111115 < XAxisRow
You can’t perform that action at this time.
0 commit comments