Browse Source

refactor(gui-v2): reset filter query and page on re-opening list modal

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3169/head
Pranav C 2 years ago
parent
commit
fbbaf0f67d
  1. 6
      packages/nc-gui-v2/components/virtual-cell/components/ListItems.vue

6
packages/nc-gui-v2/components/virtual-cell/components/ListItems.vue

@ -47,8 +47,10 @@ const linkRow = async (row: Record<string, any>) => {
vModel.value = false
}
watch(vModel, () => {
if (vModel.value) {
watch(vModel, (nextVal, prevVal) => {
if (nextVal && !prevVal) {
childrenExcludedListPagination.query = ''
childrenExcludedListPagination.page = 1
loadChildrenExcludedList()
}
})

Loading…
Cancel
Save