AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.24k stars 782 forks source link

Editing data source causes "unique key prop" error. #2029

Open Koli96 opened 5 years ago

Koli96 commented 5 years ago

Hi. Because of complexity of my data I can't use insertRow prop, and I'm trying add data in my own way - directly to my data source. But when I add record I have problem with unique "key" prop, because BootstrapTable generates

<TableRow isSelected={false} className="" index={0} enableCellEdit={false} unselectableRow={false} hidden={false} dbClickToEdit={false}>

and there is no key prop. How can I force adding key or how I can add data directly into source? Thank you for help.