function conatinstemplatename(): boolean{
let filtered = props.sessionLanguages.filter(x => x.templateName !== ' ').toArray();
(filtered.length > 0)? return true : return false;
}
The above line of code is returning expression expected error near the conditional statement.
You cant
return
inside the ternary operator. Return the whole expression.