Skip to content

Commit bf26a0a

Browse files
committed
fix(timings): remove /rest from legend when section-timings enabled
1 parent 5e7b660 commit bf26a0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/cargo/core/compiler/timings/timings.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,13 @@ function render_pipeline_graph() {
205205
ctx.save();
206206
ctx.translate(canvas_width - 200, MARGIN);
207207

208+
let frontend_name = "Frontend/rest";
209+
if (presentSections.has("other")) {
210+
frontend_name = "Frontend";
211+
}
212+
208213
const legend_entries = [{
209-
name: "Frontend/rest",
214+
name: frontend_name,
210215
color: NOT_CUSTOM_BUILD_COLOR,
211216
line: false
212217
}];

0 commit comments

Comments
 (0)