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:
@@ -15,6 +15,7 @@ import { IItem, IListItem } from '@farmmaps/common';
|
||||
export class ItemListItemContainerComponent {
|
||||
|
||||
constructor(private componentFactoryResolver: ComponentFactoryResolver, @Inject(AbstractItemListItemComponent) public itemComponentList: AbstractItemListItemComponent[] ) {
|
||||
this.itemComponentList = [...this.itemComponentList].reverse();
|
||||
}
|
||||
|
||||
@Input() item: IListItem;
|
||||
@@ -27,7 +28,6 @@ export class ItemListItemContainerComponent {
|
||||
let selected = -1;
|
||||
let maxMatches =0;
|
||||
let showItem = true;
|
||||
this.itemComponentList.reverse();
|
||||
for (let i = 0; i < this.itemComponentList.length; i++) {
|
||||
let matches=0;
|
||||
let criteria=0;
|
||||
|
Reference in New Issue
Block a user