mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-16 15:00:27 +00:00
v7.0.0-beta.20
This commit is contained in:
@@ -236,9 +236,9 @@ function App() {
|
||||
// Update data. So we can keep track of that flag with a ref.
|
||||
|
||||
// When our cell renderer calls updateMyData, we'll use
|
||||
// the rowIndex, columnID and new value to update the
|
||||
// the rowIndex, columnId and new value to update the
|
||||
// original data
|
||||
const updateMyData = (rowIndex, columnID, value) => {
|
||||
const updateMyData = (rowIndex, columnId, value) => {
|
||||
// We also turn on the flag to not reset the page
|
||||
setSkipPageReset(true)
|
||||
setData(old =>
|
||||
@@ -246,7 +246,7 @@ function App() {
|
||||
if (index === rowIndex) {
|
||||
return {
|
||||
...old[rowIndex],
|
||||
[columnID]: value,
|
||||
[columnId]: value,
|
||||
}
|
||||
}
|
||||
return row
|
||||
|
||||
Reference in New Issue
Block a user