diff --git a/public/app/plugins/datasource/testdata/QueryEditor.tsx b/public/app/plugins/datasource/testdata/QueryEditor.tsx index 699fcd2da1d..0aa6a27c558 100644 --- a/public/app/plugins/datasource/testdata/QueryEditor.tsx +++ b/public/app/plugins/datasource/testdata/QueryEditor.tsx @@ -1,4 +1,4 @@ -import React, { ChangeEvent, FormEvent, useMemo } from 'react'; +import React, { FormEvent, useMemo } from 'react'; import { useAsync } from 'react-use'; import { QueryEditorProps, SelectableValue } from '@grafana/data'; @@ -138,8 +138,8 @@ export const QueryEditor = ({ query, datasource, onChange, onRunQuery }: Props) onUpdate({ ...query, [name]: newValue }); }; - const onFieldChange = (field: string) => (e: ChangeEvent) => { - const { name, value, type } = e.currentTarget; + const onFieldChange = (field: string) => (e: { target: { name: string; value: string; type: string } }) => { + const { name, value, type } = e.target; let newValue: any = value; if (type === 'number') { diff --git a/public/app/plugins/datasource/testdata/runStreams.ts b/public/app/plugins/datasource/testdata/runStreams.ts index cb1da0e1e32..3686173d4df 100644 --- a/public/app/plugins/datasource/testdata/runStreams.ts +++ b/public/app/plugins/datasource/testdata/runStreams.ts @@ -151,8 +151,8 @@ export function runLogsStream( let timeoutId: any = null; const pushNextEvent = () => { - data.fields[0].values.add(Date.now()); - data.fields[1].values.add(getRandomLine()); + data.fields[0].values.add(getRandomLine()); + data.fields[1].values.add(Date.now()); subscriber.next({ data: [data],