diff --git a/tea.go b/tea.go index 9ca95bd..8f52f0b 100644 --- a/tea.go +++ b/tea.go @@ -340,8 +340,7 @@ func (p *Program) Start() error { // Initialize program model := p.initialModel - initCmd := model.Init() - if initCmd != nil { + if initCmd := model.Init(); initCmd != nil { go func() { cmds <- initCmd }()