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

499
Vistas
MUI Datagrid display array of objects

I am using Redux to fetch data from my API and this is what my data looks like:

enter image description here

The problem I am facing is a way to display the data from the array of objects named question.

I am using render Cell to render data for rows currently, here is the snippet of that:

return {
      field: item.dbCol, // I've a config file, which reads field name from a loop
      type: item.fieldType,
      width: item.columnWidth,
      renderCell: (params) => {
        return item.elements.map((element, iterator)=>{
          switch (element.columnType) {
             case 'Question':
              return params.row.question.map((item)=><p>{item.answer}</p>);
}

This is what I've tried so far, but I'm not able to get the data from the question object with the right column!

Any help will be really appreciated.

over 4 years ago · Santiago Trujillo
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