Skip to content

Commit a105f24

Browse files
committed
error on project page if not category
1 parent 75f4be1 commit a105f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/app/[locale]/projects/[slug]/projectDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function getProjectTags(project: ProjectPageData) {
2222
"label": project.state,
2323
"type": "subject" as 'temporal' | 'subject'
2424
},
25-
...((project.category as string[]).map(cat => ({
25+
...((project.category as string[])?.map(cat => ({
2626
"label": cat,
2727
"type": "subject" as 'temporal' | 'subject'
2828
})) || [])];

0 commit comments

Comments
 (0)