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 vModel.value = false
} }
watch(vModel, () => { watch(vModel, (nextVal, prevVal) => {
if (vModel.value) { if (nextVal && !prevVal) {
childrenExcludedListPagination.query = ''
childrenExcludedListPagination.page = 1
loadChildrenExcludedList() loadChildrenExcludedList()
} }
}) })

Loading…
Cancel
Save