From 83e994c60f36cbbcd94dcde6f19dd16e06d8979f Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Fri, 11 Oct 2024 16:17:46 +0000 Subject: [PATCH] fix: minor correction --- packages/nc-gui/composables/useMultiSelect/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index d3a7641d9c..2113f866d3 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/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