Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

282
Views
Puedo mostrar parcialmente mi contenido (mostrando firstName en lugar de firstName y lastName)

¿Cómo puedo hacer para mostrar el firstName y el lastName para las columnas People e Invitees ? Porque por ahora puedo mostrar firstName para la columna People (es decir, Eliot en lugar de Eliot Gray ); para la columna Invitees -> firstName y lastName se adjuntan juntos (es decir, Paul Poel en lugar de PaulPoel ).

 export default function Meeting() { ... const data = useMemo( () => [ { Header: "Id", accessor: (row) => row.id }, { Header: "People", accessor: (row) => row.people[0].firstName && row.people[0].lastName }, { Header: "Invitees", accessor: (row) => row.invitees, Cell: (props) => props.value !== [] && props.value.length > 0 ? ( <div> {props.value !== [] ? props.value .map(({ firstName, lastName }) => firstName && lastName) .join(", ") : ""} {props.value.length > 0 && ( <CloseIcon text={ props.value !== [] ? props.value.map((o) => ( <span key={o.firstName}> <b>{o.firstName}</b> <b>{o.lastName}</b> </span> )) : "" } /> )} </div> ) : ( "" ) } ], [] ); return ( <Table data={meeting} columns={data} /> ); }

Mi json:

 { "meeting": [ { "id": 1, "people": [ { "firstName": "Eliot", "lastName": "Gray" }, ... ], "invitees": [ { "firstName": "Paul", "lastName": "Poel" }, ... ] } ] }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!