Skip to content

Commit

Permalink
Update v3/pkg/application/menu.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
leaanthony and coderabbitai[bot] authored Jan 28, 2025
1 parent 5e44c51 commit d0bd216
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion v3/pkg/application/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ func (m *Menu) Clone() *Menu {

// Insert menu after an existing menu
func (m *Menu) Append(in *Menu) {
m.items = append(m.items, in.items...)
if in == nil {
return
}
m.items = append(m.items, in.items...)
m.Update()
}

// Insert menu before an existing menu
Expand Down

0 comments on commit d0bd216

Please sign in to comment.