Skip to content

Commit 21a17bd

Browse files
committed
Minor fix on JobsList component
1 parent 11126f0 commit 21a17bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/components/v2/jobs/JobsList.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@
427427
<td>
428428
{#if projects && row.project_id !== null && row.user_email === $page.data.userInfo.email}
429429
<a href={`/v2/projects/${row.project_id}`}>
430-
{projects.find((project) => project.id === row.project_id)?.name}
430+
{row.project_dump.name}
431431
</a>
432432
{:else}
433-
{projects.find((project) => project.id === row.project_id)?.name || '-'}
433+
{row.project_dump.name || '-'}
434434
{/if}
435435
</td>
436436
{/if}

tests/v2/admin_jobs.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test('Execute a job and show it on the job tables [v2]', async ({ page, request
6060

6161
const row1 = await getWorkflowRow(page, workflow1.workflowName);
6262
const cells1 = await row1.locator('td').all();
63-
expect(await cells1[5].innerText()).toEqual('-');
63+
expect(await cells1[5].innerText()).toEqual(workflow1.projectName);
6464
expect(await cells1[7].innerText()).toEqual(dataset1);
6565
expect(await cells1[8].innerText()).toEqual('[email protected]');
6666

0 commit comments

Comments
 (0)