Skip to content

Commit

Permalink
fix methods names
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed May 27, 2024
1 parent 15e6549 commit 8b8a4b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ function defaultPasteResolver({
}) {
const isSingleValuePasted = pastedData.length === 1 && pastedData[0].length === 1;

const cellSelectionModel = apiRef.current.getCellSelectionModel();
const selectedCellsArray = apiRef.current.getSelectedCellsAsArray();
const cellSelectionModel = apiRef.current.unstable_getCellSelectionModel();
const selectedCellsArray = apiRef.current.unstable_getSelectedCellsAsArray();
if (cellSelectionModel && selectedCellsArray.length > 1) {
Object.keys(cellSelectionModel).forEach((rowId, rowIndex) => {
const rowDataArr = pastedData[isSingleValuePasted ? 0 : rowIndex];
Expand Down

0 comments on commit 8b8a4b0

Please sign in to comment.