Skip to content

Commit

Permalink
Change clearFilters events code
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarodE committed May 9, 2024
1 parent a4871dc commit 8e67930
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,9 @@
*
* @returns The events to be emitted when the button clear filters is clicked.
*/
const events = computed<Partial<XEventsTypes>>(() =>
props.facetsIds
? {
UserClickedClearAllFilters: props.facetsIds
}
: {
UserClickedClearAllFilters: undefined
}
);
const events = computed<Partial<XEventsTypes>>(() => ({
UserClickedClearAllFilters: props.facetsIds
}));
/**
* Dynamic CSS classes to apply to the component.
Expand Down

0 comments on commit 8e67930

Please sign in to comment.