Skip to content

Commit

Permalink
[Bugfix] Convert status to string in formatStatus before calling repl…
Browse files Browse the repository at this point in the history
…aceAll

to prevent errors in JobStatus panel blocking the whole interface.
  • Loading branch information
gmarciani committed May 10, 2024
1 parent 4bf8864 commit 96b829b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
export type StatusMap = Record<string, StatusIndicatorProps.Type>

export function formatStatus(status?: string): string {
return capitalize(status?.replaceAll(/[_-]/g, ' '))
return capitalize(status?.toString().replaceAll(/[_-]/g, ' '))
}

function ClusterStatusIndicator({
Expand Down

0 comments on commit 96b829b

Please sign in to comment.