Custom Filter Based off Array Response
Custom Filter Based off Array Response
Hello,
Here is a quick little test case I have created to reproduce the issue that I am facing. https://jsfiddle.net/BeerusDev/b0cjaneq/13/
So the currentUser, "BeerusDev" is in both Team 1 & Team two so I need to show both responses on the table. Prior I had my currentTeam only returning the first team it read because I was mapping it wrong, but the filter atleast worked for that one team. Now in my sample response, it shows "Beerus Dev" is in ["Team 1", "Team 2"], but when I apply it to the filter, nothing shows in the table?
How can I have it to where it shows everything currentUser is equal to.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Since you have an array us something like Javascript includes() to see if the string matches an element in the array.
Kevin
IT worked, thanks!