mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ModifyQuery: Improve typing for modifyQuery and query hints (#52326)
* ModifyQuery: Improve typing * Elasticsearch: Added `modifyQuery` method to add filters in Explore (#52313) * fixed elasticsearch `QueryFixAction` type Co-authored-by: Sven Grossmann <Svennergr@gmail.com>
This commit is contained in:
@@ -150,11 +150,11 @@ export class Explore extends React.PureComponent<Props, ExploreState> {
|
||||
};
|
||||
|
||||
onClickFilterLabel = (key: string, value: string) => {
|
||||
this.onModifyQueries({ type: 'ADD_FILTER', key, value });
|
||||
this.onModifyQueries({ type: 'ADD_FILTER', options: { key, value } });
|
||||
};
|
||||
|
||||
onClickFilterOutLabel = (key: string, value: string) => {
|
||||
this.onModifyQueries({ type: 'ADD_FILTER_OUT', key, value });
|
||||
this.onModifyQueries({ type: 'ADD_FILTER_OUT', options: { key, value } });
|
||||
};
|
||||
|
||||
onClickAddQueryRowButton = () => {
|
||||
|
||||
Reference in New Issue
Block a user