react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Error before afterSaveCell

Open targhs opened this issue 3 years ago • 0 comments

Question I am using cellEdit functionality. Faced an issue when there is no key in the data for the cell being edited. I can see that beforeSaveCell function is being called as usual, but afterSaveCell is not called due to an error.

For example, i am editing a row {"a": 1, "b": 2}. Column definition do have another column "c". Now if i edit "c" column for this particular row, beforeSaveCell is called but afterSaveCell isn't. An error is there in the console saying [object Object].c is undefined

In the screenshot dtdfr is the column from my code. Take it as "c" column in the above example.

Going through the console error, it seems that there is some code (inside the package) trying to access the missing key. Screenshots image image

Tried searching on the internet but no success. I can help with more information if required.

targhs avatar Dec 02 '22 06:12 targhs