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:
parent
76c55e0a91
commit
ff60442e3a
|
@ -247,6 +247,8 @@ export class WorkflowSpecListComponent implements OnInit {
|
|||
private _loadWorkflowSpecCategories(selectedSpecName: string = null) {
|
||||
this.api.getWorkflowSpecCategoryList().subscribe(cats => {
|
||||
this.categories = cats;
|
||||
// Clear out this object before re-filling it
|
||||
this.workflowSpecsByCategory = [];
|
||||
|
||||
this.categories.forEach((cat, i) => {
|
||||
this.workflowSpecsByCategory.push(cat);
|
||||
|
|
Loading…
Reference in New Issue