Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

169
Vistas
Saving description from nested data in React

I'm trying to save all descriptions from a nested data return. I can save the description of a single index on my fetch. When I try to do it anywhere outside of the fetch, I get the error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'c'). C is the final section of the nested results (data[1].c[1].v). I'm not sure exactly what I'm doing wrong. I can pass the info down to the jsx and display it, but I still need to loop through all the descriptions. Any tips would be helpful.

const jsonData = JSON.parse(data.substring(47).slice(0,-2));
      setSpreadsheetData(jsonData.table.rows[1].c[1].v)

This is what returns the single description for the data. The first 1 index is what I need to loop through to get each result. Everything after is the exact path for the description. Any tips in the right direction would be helpful.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda