Skip to content

Commit

Permalink
fix für #41 (#44)
Browse files Browse the repository at this point in the history
Array.isArray(filterElement[fieldName] should not call .toLower() inside
  • Loading branch information
baumerik authored Jun 5, 2020
1 parent 48d5b4c commit 2559fcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ define(["TFS/WorkItemTracking/Services", "TFS/WorkItemTracking/RestClient", "TFS
function matchField(fieldName, currentWorkItem, filterElement) {
return (
typeof (filterElement[fieldName]) === "undefined" ||
(!Array.isArray(filterElement[fieldName].toLowerCase()) && filterElement[fieldName].toLowerCase() === currentWorkItem[fieldName].toLowerCase()) ||
(Array.isArray(filterElement[fieldName].toLowerCase()) && arraysEqual(filterElement[fieldName], currentWorkItem[fieldName]))
(!Array.isArray(filterElement[fieldName]) && filterElement[fieldName].toLowerCase() === currentWorkItem[fieldName].toLowerCase()) ||
(Array.isArray(filterElement[fieldName]) && arraysEqual(filterElement[fieldName], currentWorkItem[fieldName]))
);
}

Expand Down Expand Up @@ -522,4 +522,4 @@ define(["TFS/WorkItemTracking/Services", "TFS/WorkItemTracking/RestClient", "TFS
})
},
}
});
});

0 comments on commit 2559fcb

Please sign in to comment.