Browse Source

fix: minor correction

nc-expand-rows
DarkPhoenix2704 2 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,
}
const rowToPasteLen = rowsToPaste.length
if (pasteMatrixRows > rowsToPaste.length) {
rowsToPaste.push(
...Array(pasteMatrixRows - rowsToPaste.length)
@ -871,8 +873,7 @@ export function useMultiSelect(
},
})),
)
options = await expandRows(pasteMatrixRows - rowsToPaste.length)
options = await expandRows(pasteMatrixRows - rowToPasteLen)
if (!options.continue) {
return

Loading…
Cancel
Save