Skip to content

Commit 54b43a8

Browse files
fix: fix missing property
1 parent fcca0dc commit 54b43a8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/routes/[pullOrIssue=poi]/[org]/[repo]/[id=number]/+page.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export async function load({ params }) {
1919
itemMetadata: {
2020
org,
2121
repo,
22+
id: numId,
2223
type: type === "issues" ? ("issue" as const) : ("pull" as const)
2324
},
2425
item

src/routes/[pullOrIssue=poi]/[org]/[repo]/[id=number]/+page.svelte

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
</script>
1313

1414
<svelte:head>
15-
<title
16-
>Detail of {data.itemMetadata.org}/{data.itemMetadata.repo}#{data.itemMetadata.id} | Svelte Changelog</title
17-
>
15+
<title>
16+
Detail of {data.itemMetadata.org}/{data.itemMetadata.repo}#{data.itemMetadata.id} | Svelte Changelog
17+
</title>
1818
</svelte:head>
1919

2020
<PageRenderer
21-
metadata={data.itemMetadata}
21+
metadata={{
22+
org: data.itemMetadata.org,
23+
repo: data.itemMetadata.repo,
24+
type: data.itemMetadata.type
25+
}}
2226
info={data.item.info}
2327
{comments}
2428
{commits}

0 commit comments

Comments
 (0)