diff --git a/frontend/console/src/features/modules/module.utils.ts b/frontend/console/src/features/modules/module.utils.ts index 293f9b1641..6d5d056aa7 100644 --- a/frontend/console/src/features/modules/module.utils.ts +++ b/frontend/console/src/features/modules/module.utils.ts @@ -236,7 +236,7 @@ const verbIcon = (declCase: string, decl: DeclSumType) => { const verbTypesFromMetadata = ['cronjob', 'ingress', 'subscriber'] export const verbTypeFromMetadata = (verb: Verb) => { - const found = verb.metadata.find((m) => m.value.case && verbTypesFromMetadata.includes(m.value.case.toLowerCase())) + const found = verb.metadata?.find((m) => m.value.case && verbTypesFromMetadata.includes(m.value.case.toLowerCase())) return found?.value.case?.toLowerCase() }