summaryrefslogtreecommitdiff
path: root/pkg/ui/views/views.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ui/views/views.go')
-rw-r--r--pkg/ui/views/views.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/ui/views/views.go b/pkg/ui/views/views.go
index 0e463b7..4ea08b6 100644
--- a/pkg/ui/views/views.go
+++ b/pkg/ui/views/views.go
@@ -100,9 +100,7 @@ func SwitchModelCmd(model tea.Model) tea.Cmd {
model: model,
}
- return func() tea.Msg {
- return s
- }
+ return tea.Batch(func() tea.Msg { return s }, s.model.Init())
}
func (m RahannaModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {