diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 728437e6a9b46bf52c23b23a78f1cdeb4fa588c2..dda0ce2b9a5190953cf2bc288001a74c8c763b09 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -254,9 +254,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return a, tea.Batch(cmds...) case splash.OnboardingCompleteMsg: a.isConfigured = config.HasInitialDataConfig() - updated, cmd := a.pages[a.currentPage].Update(msg) + updated, pageCmd := a.pages[a.currentPage].Update(msg) a.pages[a.currentPage] = updated.(util.Model) - cmds = append(cmds, cmd) + cmds = append(cmds, pageCmd) return a, tea.Batch(cmds...) // Key Press Messages case tea.KeyPressMsg: @@ -268,9 +268,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { a.dialog = u.(dialogs.DialogCmp) cmds = append(cmds, dialogCmd) } else { - updated, cmd := a.pages[a.currentPage].Update(msg) + updated, pageCmd := a.pages[a.currentPage].Update(msg) a.pages[a.currentPage] = updated.(util.Model) - cmds = append(cmds, cmd) + cmds = append(cmds, pageCmd) } return a, tea.Batch(cmds...) }