Skip to content

Commit

Permalink
Handle undefined values (#9139)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat authored Feb 22, 2025
1 parent 03278c5 commit 09cdf72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/components/render/StatusRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09cdf72

Please sign in to comment.