diff --git a/packages/nc-gui/components/virtual-cell/components/ListItems.vue b/packages/nc-gui/components/virtual-cell/components/ListItems.vue index 290d43de87..64a633af20 100644 --- a/packages/nc-gui/components/virtual-cell/components/ListItems.vue +++ b/packages/nc-gui/components/virtual-cell/components/ListItems.vue @@ -50,6 +50,7 @@ const selectedRowIndex = ref(0) const isAltKeyDown = ref(false) const linkRow = async (row: Record) => { + childrenExcludedList.value?.list?.splice(selectedRowIndex.value, 1) if (isNew.value) { addLTARRef(row, column?.value as ColumnType) saveRow!() @@ -57,7 +58,7 @@ const linkRow = async (row: Record) => { await link(row) } if (isAltKeyDown.value) { - loadChildrenExcludedList() + if (!isNew.value) loadChildrenExcludedList() } else { vModel.value = false }