Fixes category add/delete issue

needed to clear out the categories object before re-filling it after an api call
This commit is contained in:
alicia pritchett 2021-09-29 12:22:35 -04:00
parent 76c55e0a91
commit ff60442e3a
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ export class WorkflowSpecListComponent implements OnInit {
private _loadWorkflowSpecCategories(selectedSpecName: string = null) { private _loadWorkflowSpecCategories(selectedSpecName: string = null) {
this.api.getWorkflowSpecCategoryList().subscribe(cats => { this.api.getWorkflowSpecCategoryList().subscribe(cats => {
this.categories = cats; this.categories = cats;
// Clear out this object before re-filling it
this.workflowSpecsByCategory = [];
this.categories.forEach((cat, i) => { this.categories.forEach((cat, i) => {
this.workflowSpecsByCategory.push(cat); this.workflowSpecsByCategory.push(cat);