Skip to content

Commit

Permalink
fix: check err
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofnds committed Apr 30, 2023
1 parent 2a983af commit f354f60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ func (m List) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return group.NewShow(selected, m), nil

case key.Matches(msg, m.groupKM.delete):
state.DeleteGroup(*selected)
if err := state.DeleteGroup(*selected); err != nil {
logger.Error.Printf("failed to delete group: %v", err)
}
cmds = append(cmds, msgs.UpdateList)
}
}
Expand Down

0 comments on commit f354f60

Please sign in to comment.