mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Fix input history (#57344)
This commit is contained in:
@@ -14,7 +14,17 @@ type Props = LokiQueryEditorProps & {
|
||||
showExplain: boolean;
|
||||
};
|
||||
|
||||
export function LokiQueryCodeEditor({ query, datasource, range, onRunQuery, onChange, data, app, showExplain }: Props) {
|
||||
export function LokiQueryCodeEditor({
|
||||
query,
|
||||
datasource,
|
||||
range,
|
||||
onRunQuery,
|
||||
onChange,
|
||||
data,
|
||||
app,
|
||||
showExplain,
|
||||
history,
|
||||
}: Props) {
|
||||
const styles = useStyles2(getStyles);
|
||||
|
||||
// the inner QueryField works like this when a blur event happens:
|
||||
@@ -35,7 +45,7 @@ export function LokiQueryCodeEditor({ query, datasource, range, onRunQuery, onCh
|
||||
onRunQuery={onRunQuery}
|
||||
onChange={onChange}
|
||||
onBlur={onBlur}
|
||||
history={[]}
|
||||
history={history}
|
||||
data={data}
|
||||
app={app}
|
||||
data-testid={testIds.editor}
|
||||
|
||||
Reference in New Issue
Block a user