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.