mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-13 16:28:26 -07:00
fix: handle nil cmds in tea.Sequentially (#214)
This commit is contained in:
@@ -68,6 +68,9 @@ func Tick(d time.Duration, fn func(time.Time) Msg) Cmd {
|
||||
func Sequentially(cmds ...Cmd) Cmd {
|
||||
return func() Msg {
|
||||
for _, cmd := range cmds {
|
||||
if cmd == nil {
|
||||
continue
|
||||
}
|
||||
if msg := cmd(); msg != nil {
|
||||
return msg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user