From 5f34c775a9193d1647306ef2f3d9338ded985901 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 6 Feb 2024 19:50:50 +0530 Subject: [PATCH] fix: load bulk actions if selection is true --- frontend/src/components/ListViews/DealsListView.vue | 1 + frontend/src/components/ListViews/LeadsListView.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/components/ListViews/DealsListView.vue b/frontend/src/components/ListViews/DealsListView.vue index 2a64c20a..7f4e3373 100644 --- a/frontend/src/components/ListViews/DealsListView.vue +++ b/frontend/src/components/ListViews/DealsListView.vue @@ -196,6 +196,7 @@ function bulkActions(selections, unselectAll) { } onMounted(() => { + if (!list.value?.data) return setupBulkActions(list.value.data) customBulkActions.value = list.value?.data?.bulkActions || [] }) diff --git a/frontend/src/components/ListViews/LeadsListView.vue b/frontend/src/components/ListViews/LeadsListView.vue index 9b3b8297..699363c8 100644 --- a/frontend/src/components/ListViews/LeadsListView.vue +++ b/frontend/src/components/ListViews/LeadsListView.vue @@ -205,6 +205,7 @@ function bulkActions(selections, unselectAll) { } onMounted(() => { + if (!list.value?.data) return setupBulkActions(list.value.data) customBulkActions.value = list.value?.data?.bulkActions || [] })