Skip to content

Commit

Permalink
feat: add index to tableData
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Mar 19, 2022
1 parent 0e34b04 commit 8187c0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/data-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default class DataManager {
this.data = data.map((row, index) => {
const prevTableData = prevDataObject[row[idSynonym]] || {};
const tableData = {
index,
id: row[idSynonym] || index,
// `uuid` acts as our 'key' and is generated when new data
// is passed into material-table externally.
Expand Down

0 comments on commit 8187c0f

Please sign in to comment.