<!-- 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; [updateFacets](./x-components.facetsservice.updatefacets.md)

## FacetsService.updateFacets() method

Replaces the facets of the group with the new ones. It ignores the provided filters selected state, replacing it with the previous selected filter.

**Signature:**

```typescript
updateFacets(facetsGroup: FacetsGroup): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  facetsGroup | [FacetsGroup](./x-components.facetsgroup.md) | An object containing the id of the facets group, and the list of new facets to store. |

**Returns:**

void

