Skip to content

Commit 7bbc6d4

Browse files
♻️ Temporary link link to future destruction list detail/update view
1 parent 4b44899 commit 7bbc6d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/src/lib/api/destructionLists.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { request } from "./request";
55
import { User } from "./reviewers";
66

77
export type DestructionList = {
8+
pk: number;
89
name: string;
910
assignees: DestructionListAssignee[];
1011
items: DestructionListItem[];

frontend/src/pages/landing/Landing.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const Landing = () => {
7777
title: list.name,
7878
days: timeAgo(list.created),
7979
assigneeNames: constructAssigneeNames(list.assignees),
80-
href: `/destruction-list/${list.name}`,
80+
href: `/destruction-list/${list.pk}`,
8181
})),
8282
) as unknown as AttributeData[][];
8383

0 commit comments

Comments
 (0)