AllenFang / AllenFang/react-bootstrap-table

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

Open
#717 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

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

}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.