Skip to content

Commit

Permalink
Merge pull request rapidpro#268 from nyaruka/missing_flow_sim_fix
Browse files Browse the repository at this point in the history
🧯 Don't blow up if flow is deleted during simulation
  • Loading branch information
rowanseymour authored Apr 16, 2020
2 parents 49a3f29 + 90dd9b3 commit 43215ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/simulation/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func handleResume(ctx context.Context, s *web.Server, r *http.Request) (interfac
var flow *models.Flow
for _, r := range session.Runs() {
if r.Status() == flows.RunStatusWaiting {
f, _ := org.Flow(r.Flow().UUID())
f, _ := org.Flow(r.FlowReference().UUID)
if f != nil {
flow = f.(*models.Flow)
}
Expand Down

0 comments on commit 43215ce

Please sign in to comment.