@empathyco/x-components
Version:
Empathy X Components
71 lines (33 loc) • 1.07 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DefaultFacetsService](./x-components.defaultfacetsservice.md) > [updateFiltersSelectedState](./x-components.defaultfacetsservice.updatefiltersselectedstate.md)
## DefaultFacetsService.updateFiltersSelectedState() method
Changes the filters selection state to match the store.
**Signature:**
```typescript
protected updateFiltersSelectedState(newFilters: Filter[], previousFilters?: Filter[]): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
newFilters
</td><td>
Filter\[\]
</td><td>
The list of filters to save.
</td></tr>
<tr><td>
previousFilters
</td><td>
Filter\[\]
</td><td>
_(Optional)_ (Optional) The list of old filters, used to set the `newFilters` selected state.
</td></tr>
</tbody></table>
**Returns:**
void