Skip to content

Commit

Permalink
fix: only start auto update tick after user selects a application
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikMWold committed Jul 16, 2024
1 parent 909e384 commit 591e8f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applicationTable/applicationTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func (m Model) Init() tea.Cmd {
return tea.Batch(tick(), m.spinner.Tick, getApplications)
return tea.Batch(m.spinner.Tick, getApplications)
}

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
Expand All @@ -24,6 +24,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
return m, tea.Batch(
getApplicationData(m.selectedApp),
selectApplication(m.selectedApp),
tick(),
)
}
}
Expand Down

0 comments on commit 591e8f6

Please sign in to comment.