Skip to content

Commit

Permalink
Merge pull request #996 from HubSpot/fix-undefined-on-request-page-af…
Browse files Browse the repository at this point in the history
…ter-deploy

deployProgress was undefined yet we tried to get attributes out of it
  • Loading branch information
ssalinas committed Apr 20, 2016
2 parents 52733a5 + d33df54 commit eb5e40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SingularityUI/app/views/requestHeader.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class requestHeaderSubview extends View

if !!@model.get('pendingDeploy')
deployingInstanceCount = @activeTasks.where({deployId: @model.get('pendingDeploy').id, lastTaskState: 'TASK_RUNNING'}).length
if !!@model.get('pendingDeployState')
if !!@model.get('pendingDeployState') and @model.get('pendingDeployState').deployProgress
nextDeployStepTimestamp = @model.get('pendingDeployState').deployProgress.timestamp + (@model.get('pendingDeployState').deployProgress.deployStepWaitTimeMs)

isBouncing: bounces?.length > 0 and @taskCleanups.synced and @activeTasks.synced
Expand Down

0 comments on commit eb5e40d

Please sign in to comment.