Commit d001c300 authored by VINXIS's avatar VINXIS
Browse files

fix search

parent b25ad4d8
Pipeline #4334 passed with stages
in 6 minutes and 29 seconds
......@@ -337,7 +337,7 @@ export default {
const regex = new RegExp(this.teamSearch.split().join(".*"), "i")
this.filterActive = true;
this.scheduleFiltered = this.scheduleList.filter((match) => {
(match.teamA && (match.teamA.name.match(regex) || match.teamA.members.some(member => member.username.match(regex) || member.osuID.match(regex)))) ||
return (match.teamA && (match.teamA.name.match(regex) || match.teamA.members.some(member => member.username.match(regex) || member.osuID.match(regex)))) ||
(match.teamB && (match.teamB.name.match(regex) || match.teamB.members.some(member => member.username.match(regex) || member.osuID.match(regex)))) ||
match.matchID.match(regex)
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment