From ff60442e3afd1cdc293c661b3a14bc4d08215b9a Mon Sep 17 00:00:00 2001 From: alicia pritchett Date: Wed, 29 Sep 2021 12:22:35 -0400 Subject: [PATCH] Fixes category add/delete issue needed to clear out the categories object before re-filling it after an api call --- src/app/workflow-spec-list/workflow-spec-list.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.ts b/src/app/workflow-spec-list/workflow-spec-list.component.ts index 45cf082..6bf6552 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.ts @@ -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);