Skip to content

Commit

Permalink
fix(websocket): fix refreh sidebar (#5198)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored May 26, 2020
1 parent 8cd9356 commit 57d8b5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engine/api/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,13 @@ func (c *websocketClient) send(ctx context.Context, event sdk.Event) (err error)
sendEvent = false
break
}

// sdk.EventRunWorkflow must always be sent for sidebar
if event.EventType == "sdk.EventRunWorkflow" {
sendEvent = true
break
}

if c.filter.WorkflowRunNumber != 0 && event.WorkflowRunNum != c.filter.WorkflowRunNumber {
sendEvent = false
break
Expand Down

0 comments on commit 57d8b5b

Please sign in to comment.