AllenFang / AllenFang/react-bootstrap-table

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

Aberta
#717 1 comentário 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
JavaScript
Estrelas
2.2k
Forks
761
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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. ))}

}
```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.