From 4222121e412f102c0e4b3a49ed4ba96af7b50c1f Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sat, 15 Mar 2025 14:22:34 +0530 Subject: [PATCH] fix: reload list resource if not already loading --- frontend/src/components/ViewControls.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/ViewControls.vue b/frontend/src/components/ViewControls.vue index d22bcfa4..d570606d 100644 --- a/frontend/src/components/ViewControls.vue +++ b/frontend/src/components/ViewControls.vue @@ -203,7 +203,9 @@ label: __('Export'), icon: () => h(ExportIcon, { class: 'h-4 w-4' }), onClick: () => (showExportDialog = true), - condition: () => !options.hideColumnsButton && route.params.viewType !== 'kanban', + condition: () => + !options.hideColumnsButton && + route.params.viewType !== 'kanban', }, { label: __('Customize quick filters'), @@ -535,6 +537,7 @@ onMounted(() => useDebounceFn(reload, 100)()) const isLoading = computed(() => list.value?.loading) function reload() { + if (isLoading.value) return list.value.params = getParams() list.value.reload() }