Merge pull request #103 from sartography/chore/last-category-469

Fixes #469 - Keep last Category Open
This commit is contained in:
Dan Funk 2021-09-22 15:19:57 -04:00 committed by GitHub
commit 03d383a3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export class WorkflowSpecListComponent implements OnInit {
}
isSelected(cat: WorkflowSpecCategory) {
return this.selectedCat && this.selectedCat === cat;
return this.selectedCat && this.selectedCat.id === cat.id;
}
selectSpec(selectedSpec?: WorkflowSpec) {
@ -284,6 +284,7 @@ export class WorkflowSpecListComponent implements OnInit {
this.workflowSpecs.forEach(ws => {
if (selectedSpecName && selectedSpecName === ws.name) {
this.selectedSpec = ws;
this.selectedCat = this.selectedSpec.category;
}
});
} else {