diff --git a/neode-ui/src/views/Cloud.vue b/neode-ui/src/views/Cloud.vue index cd3dbe31..a24c1e23 100644 --- a/neode-ui/src/views/Cloud.vue +++ b/neode-ui/src/views/Cloud.vue @@ -436,8 +436,9 @@ function categoryOf(nameOrMime: string): Exclude { return 'documents' } +const FALLBACK_SECTION: ContentSection = contentSections[2]! function categoryMeta(cat: Exclude): ContentSection { - return contentSections.find(s => s.id === cat) ?? contentSections[2] + return contentSections.find(s => s.id === cat) ?? FALLBACK_SECTION } function formatSize(bytes: number): string {