Fixed Tests

This commit is contained in:
Nile Walker 2021-03-22 13:23:13 -04:00
parent 9c441e68ca
commit 0fdfa0d942

View File

@ -375,9 +375,11 @@ export class WorkflowSpecListComponent implements OnInit {
} }
private _updateSpecDisplayOrders(specs: WorkflowSpec[]) { private _updateSpecDisplayOrders(specs: WorkflowSpec[]) {
if (this.selectedCat && this.selectedSpec.category) {
if (this.selectedCat.id !== this.selectedSpec.category.id) { if (this.selectedCat.id !== this.selectedSpec.category.id) {
this.selectedSpec = specs[0]; this.selectedSpec = specs[0];
} }
}
let numUpdated = 0; let numUpdated = 0;
specs.forEach((spec, j) => { specs.forEach((spec, j) => {
const newSpec = createClone({ circles: true })(spec); const newSpec = createClone({ circles: true })(spec);