Skip to content

Commit

Permalink
fix: avoid accessing null value (#20305)
Browse files Browse the repository at this point in the history
  • Loading branch information
axonasif authored Oct 17, 2024
1 parent c8272aa commit 812b946
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ export class PublicAPIConverter {
status.phase.name = this.toPhase(arg);
status.instanceId = arg.id;
status.conditions = new WorkspaceStatus_WorkspaceConditions({
failed: arg.status.conditions.failed,
timeout: arg.status.conditions.timeout,
failed: arg.status.conditions?.failed,
timeout: arg.status.conditions?.timeout,
});
status.gitStatus = this.toGitStatus(arg, status.gitStatus);

Expand Down

0 comments on commit 812b946

Please sign in to comment.