Skip to content

Commit

Permalink
fix: console undefined bug (#3258)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniseli authored Oct 30, 2024
1 parent eb8b601 commit 0858fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/console/src/features/modules/module.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 0858fb6

Please sign in to comment.