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

207
Views
no se puede acceder a elementos de identificación en objetos anidados

Recibo las claves devueltas (0,1...) pero no puedo acceder al valor de _text Estos son mis datos, de tipo objeto IdList es un objeto : IdList: {Id: Array(6)} Estoy teniendo las teclas pero no puede acceder al valor de _text

Lista de Id: {Id: Matriz (6)}

 Id: Array(6) 0: {_text: '34983115'} 1: {_text: '34983114'} 2: {_text: '34983113'}...
 query {_declaration: {…}, _doctype: '', eSearchResult: {…}} eSearchResult: Count: {_text: '203374'} IdList: Id: Array(6) 0: {_text: '34983115'} 1: {_text: '34983114'} 2: {_text: '34983113'} 3: {_text: '34983112'} 4: {_text: '34983111'} 5: {_text: '34983110'} length: 6 [[Prototype]]: Array(0) [[Prototype]]: Object

Almacené los datos en un estado de objeto llamado consulta

 const [query, setQuery] = useState({});

Luego intenté acceder a la identificación en la lista de identificación: la salida de este código es índice, index._text no está definido

 {Object.keys(query).length && Object.keys(query.eSearchResult.IdList.Id).map((keyName, index) => { return ( <div className="card bg-c-blue order-card"> <div className="card-block" keyy={index}> {index} {index._text} </div> </div> ); })}
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!