Make reverse non destructive
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -13,6 +13,7 @@ import { IItemLayer } from '../../models/item.layer';
|
||||
export class SelectedItemContainerComponent {
|
||||
|
||||
constructor(private componentFactoryResolver: ComponentFactoryResolver, @Inject(AbstractSelectedItemComponent) public selectedItemComponents: AbstractSelectedItemComponent[] ) {
|
||||
this.selectedItemComponents = [...this.selectedItemComponents].reverse();
|
||||
}
|
||||
|
||||
@Input() item: IItem;
|
||||
@@ -28,7 +29,6 @@ export class SelectedItemContainerComponent {
|
||||
let selected = -1;
|
||||
let maxMatches =0;
|
||||
let showItem = true;
|
||||
this.selectedItemComponents.reverse();
|
||||
for (let i = 0; i < this.selectedItemComponents.length; i++) {
|
||||
let matches=0;
|
||||
let criteria=0;
|
||||
|
Reference in New Issue
Block a user