Handle undefined values (#9139)

This commit is contained in:
Oliver 2025-02-22 11:52:11 +11:00 committed by GitHub
parent 03278c56c9
commit 09cdf72bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export function getStatusCodeOptions(type: ModelType | string): any[] {
return [];
}
return Object.values(statusCodes.values).map((entry) => {
return Object.values(statusCodes?.values ?? []).map((entry) => {
return {
value: entry.key,
display_name: entry.label