<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [NextQueriesActions](./x-components.nextqueriesactions.md) &gt; [setQueryFromLastHistoryQuery](./x-components.nextqueriesactions.setqueryfromlasthistoryquery.md)

## NextQueriesActions.setQueryFromLastHistoryQuery() method

Sets the query of the module based on the last history query.

**Signature:**

```typescript
setQueryFromLastHistoryQuery(historyQueries: HistoryQuery[]): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  historyQueries | HistoryQuery\[\] |  |

**Returns:**

void

