diff --git a/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue b/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue index 7419a0db30..e585956636 100644 --- a/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue +++ b/packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue @@ -51,6 +51,7 @@ const { unlink, row, headerDisplayValue, + resetChildrenExcludedOffsetCount } = useLTARStoreOrThrow() const { addLTARRef, isNew, removeLTARRef, state: rowState } = useSmartsheetRowStoreOrThrow() @@ -101,6 +102,9 @@ watch( } loadChildrenExcludedList(rowState.value) } + if(!nextVal){ + resetChildrenExcludedOffsetCount() + } }, { immediate: true, @@ -255,6 +259,11 @@ onUnmounted(() => { childrenExcludedListPagination.query = '' window.removeEventListener('keydown', linkedShortcuts) }) + +const onFilterChange = () => { + childrenExcludedListPagination.page = 1; + resetChildrenExcludedOffsetCount() +}