Skip to content

Commit

Permalink
fix after insert new row, data is not written to the correct row (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
splohmer authored Mar 23, 2024
1 parent 9e1734a commit 1eeefe7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/sheet/sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@ class Sheet {
}
if (rowIndex <= rowKey) {
_data[rowKey + 1] = _sheetData[rowKey]!;
_data[rowKey + 1]!.forEach((key, value) {
value._rowIndex++;
});
}
});
}
Expand Down

0 comments on commit 1eeefe7

Please sign in to comment.