Browse Source

fix: minor correction

nc-expand-rows
DarkPhoenix2704 3 months ago
parent
commit
83e994c60f
  1. 5
      packages/nc-gui/composables/useMultiSelect/index.ts

5
packages/nc-gui/composables/useMultiSelect/index.ts

@ -859,6 +859,8 @@ export function useMultiSelect(
expand: true, expand: true,
} }
const rowToPasteLen = rowsToPaste.length
if (pasteMatrixRows > rowsToPaste.length) { if (pasteMatrixRows > rowsToPaste.length) {
rowsToPaste.push( rowsToPaste.push(
...Array(pasteMatrixRows - rowsToPaste.length) ...Array(pasteMatrixRows - rowsToPaste.length)
@ -871,8 +873,7 @@ export function useMultiSelect(
}, },
})), })),
) )
options = await expandRows(pasteMatrixRows - rowToPasteLen)
options = await expandRows(pasteMatrixRows - rowsToPaste.length)
if (!options.continue) { if (!options.continue) {
return return

Loading…
Cancel
Save