Skip to content

Commit a3d719e

Browse files
committed
site: don't show progress bar for new templates
Resolves #5229
1 parent ee74df3 commit a3d719e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

site/src/components/WorkspaceBuildProgress/WorkspaceBuildProgress.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ export const WorkspaceBuildProgress: FC<WorkspaceBuildProgressProps> = ({
102102
setTimeout(updateProgress, 5)
103103
}, [progressValue, job, transitionStats])
104104

105+
// HACK: the codersdk type generator doesn't support null values, but this
106+
// can be null when the template is new.
107+
if ((transitionStats.P50 as number | null) === null) {
108+
return <></>
109+
}
105110
return (
106111
<div className={styles.stack}>
107112
<LinearProgress

0 commit comments

Comments
 (0)