Skip to content

Commit 9049884

Browse files
authored
Merge pull request #2532 from JonathanBrouwer/fix-detailed-results-doc-json
Fix "detailed results" button for doc-json benchmarks
2 parents 94df17b + 4e0a8ad commit 9049884

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • site/frontend/src/pages/detailed-query

site/frontend/src/pages/detailed-query/page.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,12 @@ async function loadData() {
197197
// To maintain backwards compatibility of URLs, parse the profile from the
198198
// benchmark URL parameter
199199
// We turn <benchmark>-<profile> into two separate parameters for the backend
200-
const parts = benchmark.split("-");
200+
let parts: string[];
201+
if (benchmark.endsWith("-doc-json")) {
202+
parts = [benchmark.slice(0, -"-doc-json".length), "doc-json"];
203+
} else {
204+
parts = benchmark.split("-");
205+
}
201206
const profile = parts[parts.length - 1];
202207
const benchmarkSeparate = parts.slice(0, parts.length - 1).join("-");
203208

0 commit comments

Comments
 (0)