Skip to content

Commit

Permalink
Reset previous errors at sync
Browse files Browse the repository at this point in the history
  • Loading branch information
canack committed Jan 6, 2024
1 parent d52e826 commit 4581ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/terminal/handler/ghworkflow/ghworkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func (m *ModelGithubWorkflow) View() string {
}

func (m *ModelGithubWorkflow) syncTriggerableWorkflows(ctx context.Context) {
m.modelError.Reset()
m.modelError.SetProgressMessage(
fmt.Sprintf("[%s@%s] Fetching triggerable workflows...", m.SelectedRepository.RepositoryName, m.SelectedRepository.BranchName))
m.actualModelTabOptions.SetStatus(taboptions.OptionWait)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func (m *ModelGithubWorkflowHistory) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}

func (m *ModelGithubWorkflowHistory) syncWorkflowHistory(ctx context.Context) {
m.modelError.Reset()
m.modelError.SetProgressMessage(
fmt.Sprintf("[%s@%s] Fetching workflow history...", m.SelectedRepository.RepositoryName, m.SelectedRepository.BranchName))
m.actualModelTabOptions.SetStatus(taboptions.OptionWait)
Expand Down

0 comments on commit 4581ddb

Please sign in to comment.