@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 805 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) > [setSelectedQueryPreview](./x-components.queriespreviewmutations.setselectedquerypreview.md)
## QueriesPreviewMutations.setSelectedQueryPreview() method
Sets the selected query preview of the module.
**Signature:**
```typescript
setSelectedQueryPreview(selectedQueryPreview: QueryPreviewInfo | null): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selectedQueryPreview | [QueryPreviewInfo](./x-components.querypreviewinfo.md) \| null | The selected query preview to save to the state. |
**Returns:**
void