<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SearchMutations](./x-components.searchmutations.md) &gt; [setSelectedFilters](./x-components.searchmutations.setselectedfilters.md)

## SearchMutations.setSelectedFilters() method

Sets the selected filters of the module.

**Signature:**

```typescript
setSelectedFilters(selectedFilters: Filter[]): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  selectedFilters | Filter\[\] | The new selected filters to save to the state. |

**Returns:**

void

