Skip to content

Commit 113bcb2

Browse files
committed
Handle unknown status
1 parent 60dd8df commit 113bcb2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

site/src/utils/workspace.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ export const getDisplayWorkspaceBuildStatus = (
5757
color: theme.palette.text.secondary,
5858
status: DisplayWorkspaceBuildStatusLanguage.failed,
5959
} as const;
60+
// Just handle unknown as failed
61+
case "unknown":
62+
return {
63+
type: "error",
64+
color: theme.palette.text.secondary,
65+
status: DisplayWorkspaceBuildStatusLanguage.failed,
66+
} as const;
6067
case "canceling":
6168
return {
6269
type: "warning",

0 commit comments

Comments
 (0)