<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FacetsMutations](./x-components.facetsmutations.md) &gt; [mutateFilter](./x-components.facetsmutations.mutatefilter.md)

## FacetsMutations.mutateFilter() method

Updates the state of a filter.

**Signature:**

```typescript
mutateFilter(payload: MutateFilterPayload): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  payload | [MutateFilterPayload](./x-components.mutatefilterpayload.md) | An object containing the filter to update, and the properties to modify. |

**Returns:**

void

