Skip to content

Commit cb62d23

Browse files
authored
Merge pull request #138 from codeforIATI/22-nuxtjs-rewrite
Handle case where there is no name for this codelist
2 parents 5cd7e46 + de72240 commit cb62d23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/CodelistPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const codes = computed(() => {
193193
})
194194
195195
const name = computed(() => {
196-
return apiData.value.metadata.name
196+
return apiData.value.metadata.name ? apiData.value.metadata.name : props.codelist
197197
})
198198
199199
const description = computed(() => {

0 commit comments

Comments
 (0)