diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index a04c5bb727..ed330a83f3 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -752,7 +752,7 @@ export function useMultiSelect( const clipboardMatrix = parsedClipboard.data as string[][] - const selectionRowCount = selectedRange.end.row - selectedRange.start.row + 1 + const selectionRowCount = clipboardMatrix.length const pasteMatrixRows = selectionRowCount const pasteMatrixCols = clipboardMatrix[0].length