Skip to content

Commit

Permalink
Fix issue with JSON and LaTeX (#1873)
Browse files Browse the repository at this point in the history
  • Loading branch information
farzaank authored Oct 6, 2023
1 parent 0f38d62 commit 175a635
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/helm/benchmark/static/benchmarking.js
Original file line number Diff line number Diff line change
Expand Up @@ -1536,12 +1536,24 @@ $(function () {
$output.append(
renderItems(
table.links.map((link) => {
// replace everything before benchmark output, as it is incorrect
let myLink = link.href;
const delimiter = "benchmark_output";
let parts = myLink.split(delimiter);
if (parts.length > 1) {
let result = BENCHMARK_OUTPUT_BASE_URL + delimiter + parts[1];
return $("<a>", { href: result }).append(link.text);
} else {
console.log(
"benchmark_output not found, invalid link for ",
table,
);
}
return $("<a>", { href: link.href }).append(link.text);
}),
),
);
}

return $output;
}

Expand Down

0 comments on commit 175a635

Please sign in to comment.