summaryrefslogtreecommitdiff
path: root/pkg/ui/views/views.go
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-13 13:24:08 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-13 13:24:28 +0200
commit76f46e54175253d4b2ba61b9cb8f2525a48c15d8 (patch)
tree8664af77e9bd66ae578fa83870026c2d6bca6065 /pkg/ui/views/views.go
parent72382e2dd9e509e6467dab9bfd11b7c7ddcf918a (diff)
Create adversary's server
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) {