fix: handle undefined job while updating build progress (#16732)

Fixes: https://github.com/coder/coder/issues/15444
This commit is contained in:
Marcin Tojek
2025-02-27 20:30:11 +01:00
committed by GitHub
parent 91a4a98c27
commit 0ea06012fc
@@ -81,6 +81,7 @@ export const WorkspaceBuildProgress: FC<WorkspaceBuildProgressProps> = ({
useEffect(() => {
const updateProgress = () => {
if (
job === undefined ||
job.status !== "running" ||
transitionStats.P50 === undefined ||
transitionStats.P95 === undefined ||