facebookarchive / fixed-data-table

A React table component designed to allow presenting thousands of rows of data.
http://facebook.github.io/fixed-data-table/
Other
4.3k stars 553 forks source link

Cannot add property xxxxxx, object is not extensible #496

Open anandrikka opened 7 years ago

anandrikka commented 7 years ago

I'm using fixed-data-table to render 1000 rows. I have a checkbox when clicked should show input boxes to edit the row.

checkboxSelect = (index, checkFlag) => {
  const {users} = this.state
  users[index]['selected'] = checkFlag // Getting Error Here
  this.setState({
    users,
  })
}

please help not sure what is the issue.