I am using material table in my project. I am adding custom add button. But when I select a checkbox and click on add button, it throws an error "Cannot read property \