Browse Source

fix: skip overflowing rows on paste

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5847/head
mertmit 1 year ago
parent
commit
23926892d7
  1. 6
      packages/nc-gui/composables/useMultiSelect/index.ts

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

@ -532,7 +532,7 @@ export function useMultiSelect(
const pasteRow = rowsToPaste[i] const pasteRow = rowsToPaste[i]
// TODO handle insert new row // TODO handle insert new row
if (pasteRow.rowMeta.new) break if (!pasteRow || pasteRow.rowMeta.new) break
pastedRows++ pastedRows++
@ -663,10 +663,10 @@ export function useMultiSelect(
for (const row of rows) { for (const row of rows) {
// TODO handle insert new row // TODO handle insert new row
if (row.rowMeta.new) continue if (!row || row.rowMeta.new) continue
for (const col of cols) { for (const col of cols) {
if (!row || !col || !col.title) continue if (!col || !col.title) continue
// skip pasting virtual columns (including LTAR columns for now) // skip pasting virtual columns (including LTAR columns for now)
if (isVirtualCol(col)) { if (isVirtualCol(col)) {

Loading…
Cancel
Save