<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FacetsService](./x-components.facetsservice.md) &gt; [updatePreselectedFilters](./x-components.facetsservice.updatepreselectedfilters.md)

## FacetsService.updatePreselectedFilters() method

Replaces the preselected filters with the new ones.

**Signature:**

```typescript
updatePreselectedFilters(filters: Filter[]): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  filters | Filter\[\] | An array of filters. |

**Returns:**

void

