Skip to content

Commit

Permalink
fix job name when using custom name
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjornstad committed Nov 20, 2023
1 parent 0ecb776 commit 74426d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/team/[team]/[env]/job/[job]/logs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
$: setSelected(selectedRun);
function renderRunName(i: string) {
return i.slice(job.length + 1);
console.log(i);
if (i.startsWith(job)) {
return i.slice(job.length + 1);
} else {
return i;
}
}
const viewOptions = ['Time', 'Level', 'Name'];
Expand Down

0 comments on commit 74426d5

Please sign in to comment.