Skip to content

Commit

Permalink
fix: update stage list in stages component
Browse files Browse the repository at this point in the history
This commit corrects an error the TaskDefinitionStagesComponent by adding
a call to the `renderRows()` method after pushing a new stage to the
`stages` array. This ensures that the table is updated with the new
stage immediately. The change improves the user experience by providing
real-time updates when adding stages to the task definition.
  • Loading branch information
coskun-kilinc committed May 17, 2024
1 parent e94a874 commit f11c759
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export class TaskDefinitionStagesComponent implements OnInit {
(response) => {
this.stages.push(response);
this.sortStages();
this.table.renderRows();

const message = `Added stage ${response.title} to ${this.taskDefinition.name}`;
this.alerts.add('success', message, this.successAlertTime);
},
Expand Down

0 comments on commit f11c759

Please sign in to comment.