diff --git a/tea.go b/tea.go index 03734bc..27bc3e3 100644 --- a/tea.go +++ b/tea.go @@ -310,6 +310,10 @@ func (p *Program) eventLoop(model Model, cmds chan Cmd) (Model, error) { go func() { // Execute commands one at a time, in order. for _, cmd := range msg { + if cmd == nil { + continue + } + p.Send(cmd()) } }()