[SOLVED] Filter repeater based on Member Role

@lmeyer There’s a mistake here:

 let roles = roles.map(e => e.name); 

It should be:

 let roles = r.map(e => e.name);

By the way, instead of console.log(“some string”), you should log the relevant variable, so you’ll be able to locate the error. For example: console.log(roles)