Skip to content

Commit 552c4cd

Browse files
fix: handle undefined job while updating build progress (cherry-pick coder#16732) (coder#16741)
Cherry-picked fix: handle undefined job while updating build progress (coder#16732) Fixes: coder#15444 Co-authored-by: Marcin Tojek <mtojek@users.noreply.github.com>
1 parent fb71cb5 commit 552c4cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

site/src/pages/WorkspacePage/WorkspaceBuildProgress.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const WorkspaceBuildProgress: FC<WorkspaceBuildProgressProps> = ({
8181
useEffect(() => {
8282
const updateProgress = () => {
8383
if (
84+
job === undefined ||
8485
job.status !== "running" ||
8586
transitionStats.P50 === undefined ||
8687
transitionStats.P95 === undefined ||

0 commit comments

Comments
 (0)