@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 811 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [FacetsService](./x-components.facetsservice.md) > [updateFacets](./x-components.facetsservice.updatefacets.md)
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;
```
| 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