mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: handle undefined job while updating build progress (#16732)
Fixes: https://github.com/coder/coder/issues/15444
This commit is contained in:
@@ -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