Skip to content

Commit 8cf7d54

Browse files
committed
Fix object because of mapping
1 parent 336336a commit 8cf7d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/snippets/$id.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export const Route = createFileRoute('/snippets/$id')({
4545

4646
const author = snippet.author || snippet.createdBy?.username || 'Unknown'
4747
const description = snippet.description
48-
? `By ${author}. ${snippet.description} - Typst Snippets. ${snippet.tags && snippet.tags.length > 0 ? 'Tags: ' + snippet.tags.join(', ') + '.' : ''}`
49-
: `By ${author}. A Typst snippet on Snippyst. ${snippet.tags && snippet.tags.length > 0 ? 'Tags: ' + snippet.tags.join(', ') + '.' : ''}`
48+
? `By ${author}. ${snippet.description} - Typst Snippets. ${snippet.tags && snippet.tags.length > 0 ? 'Tags: ' + snippet.tags.map((tag: any) => tag.name).join(', ') + '.' : ''}`
49+
: `By ${author}. A Typst snippet on Snippyst. ${snippet.tags && snippet.tags.length > 0 ? 'Tags: ' + snippet.tags.map((tag: any) => tag.name).join(', ') + '.' : ''}`
5050

5151
return {
5252
meta: generateSEOMeta({

0 commit comments

Comments
 (0)