From 8e67930d9b4fcee9f15fdd92d931d9c832e19133 Mon Sep 17 00:00:00 2001 From: varodv <72568818+alvarodE@users.noreply.github.com> Date: Thu, 9 May 2024 09:27:35 +0200 Subject: [PATCH] Change clearFilters events code --- .../x-modules/facets/components/clear-filters.vue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/x-components/src/x-modules/facets/components/clear-filters.vue b/packages/x-components/src/x-modules/facets/components/clear-filters.vue index ecd4cb4051..9b1e188002 100644 --- a/packages/x-components/src/x-modules/facets/components/clear-filters.vue +++ b/packages/x-components/src/x-modules/facets/components/clear-filters.vue @@ -43,15 +43,9 @@ * * @returns The events to be emitted when the button clear filters is clicked. */ - const events = computed>(() => - props.facetsIds - ? { - UserClickedClearAllFilters: props.facetsIds - } - : { - UserClickedClearAllFilters: undefined - } - ); + const events = computed>(() => ({ + UserClickedClearAllFilters: props.facetsIds + })); /** * Dynamic CSS classes to apply to the component.