Fix matching
Some checks failed
FarmMaps/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -33,13 +33,13 @@ export class ItemListItemContainerComponent {
|
||||
let criteria=0;
|
||||
if (this.itemComponentList[i]['forItemType']) {
|
||||
criteria++;
|
||||
if(this.itemComponentList[i]['forItemType'].indexOf(this.item.itemType) >= 0) {
|
||||
if(this.itemComponentList[i]['forItemType'].split(",").filter(part => part ==this.item.itemType).length == 1) {
|
||||
matches++;
|
||||
}
|
||||
}
|
||||
if (this.itemComponentList[i]['forSourceTask']) {
|
||||
criteria++;
|
||||
if(this.itemComponentList[i]['forSourceTask'].indexOf(this.item.sourceTask) >= 0) {
|
||||
if(this.itemComponentList[i]['forSourceTask'].split(",").filter(part => part ==this.item.sourceTask).length ==1) {
|
||||
matches++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user