mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
FieldValues: Use plain arrays instead of Vector (part 2 of 2) (#66224)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
co-authored by
Leon Sorokin
parent
6d53c87862
commit
e65163ba4e
@@ -3,7 +3,6 @@ import { delay, take } from 'rxjs/operators';
|
||||
import { createFetchResponse } from 'test/helpers/createFetchResponse';
|
||||
|
||||
import {
|
||||
ArrayVector,
|
||||
DataFrame,
|
||||
DataFrameJSON,
|
||||
DataSourceApi,
|
||||
@@ -238,7 +237,7 @@ const expectDataFrameWithValues = ({ time, values }: { time: number[]; values: n
|
||||
name: 'time',
|
||||
state: null,
|
||||
type: FieldType.time,
|
||||
values: new ArrayVector(time),
|
||||
values: time,
|
||||
} as Field,
|
||||
{
|
||||
config: {},
|
||||
@@ -246,7 +245,7 @@ const expectDataFrameWithValues = ({ time, values }: { time: number[]; values: n
|
||||
name: 'value',
|
||||
state: null,
|
||||
type: FieldType.number,
|
||||
values: new ArrayVector(values),
|
||||
values: values,
|
||||
} as Field,
|
||||
],
|
||||
length: values.length,
|
||||
|
||||
Reference in New Issue
Block a user