@lmeyer I guess you tried it with a user who has no roles.
Add a condition in the “then” part:
.then(r => {
if(r.length > 0){
//the code here
}
})
@lmeyer I guess you tried it with a user who has no roles.
Add a condition in the “then” part:
.then(r => {
if(r.length > 0){
//the code here
}
})