AllenFang / AllenFang/react-bootstrap-table

Effectless type error when trying to map an array in a formatted field

Abierto
#717 1 comentario 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
JavaScript
Estrellas
2.2k
Forks
761
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hello there !

I get an "Uncaught TypeError: cell.map is not a function" each time I edit the cell (but no error when the component mounts). Although the error seems to have no effect (updating the data and formatting the cell work perfectly), I'd really like to know how I could achieve this in a cleaner way.

Thanks for your answers !

```
function contentCell(cell, row){
return


    {cell.map(step=> (
  1. {step}

  2. ))}

}
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.