Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

500
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda