SyntaxFix
Write A Post
Hire A Developer
Questions
Use this code in your service:
return this.getReports(accessToken) .then(reports => reports.filter(report => report.id === id)[0]);