How to display logos in accordance with the id?

Good day!
There are two tables in the database
the first is "projects"
the second - "company"

First keep a list of projects that the second company that these projects are ordered


Second, the company name and a link to the logo


But when you create the project by selecting the client, you can display all the logos...


const onGetCompanyListDetails = () => {
 return => {
 const logoUrl = companyList.find(i => === projects.companyId).imgUrl;
 return <img key={} src={logoUrl} />
April 4th 20 at 13:26
1 answer
April 4th 20 at 13:28
Do better companyName separate endpoint'ohms. Ie

Find more questions by tags React