fix: handle undefined job while updating build progress (#16732)
Fixes: https://github.com/coder/coder/issues/15444
This commit is contained in:
1 parent
91a4a98c27
commit
0ea06012fc
1 file changed
+1
@@ -81,6 +81,7 @@ export const WorkspaceBuildProgress: FC<WorkspaceBuildProgressProps> = ({
|
||||
useEffect(() => {
|
||||
const updateProgress = () => {
|
||||
if (
|
||||
job === undefined ||
|
||||
job.status !== "running" ||
|
||||
transitionStats.P50 === undefined ||
|
||||
transitionStats.P95 === undefined ||
|
||||
|
||||
Reference in new issue
Block a user