AllenFang / AllenFang/react-bootstrap-table

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

Đang mở
#717 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
2.2k
Fork
761
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.