mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataFrameJSON: add string enums inflation of field values (#54938)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
@@ -66,7 +66,8 @@ export function randomizeData(data: DataFrameJSON[], opts: Randomize): DataFrame
|
||||
if (opts.values) {
|
||||
schema.fields.forEach((f, idx) => {
|
||||
if (f.type === FieldType.string && data) {
|
||||
const v = data.values[idx].map((v) => rand(v));
|
||||
// eslint-ignore-next-line
|
||||
const v = data.values[idx].map((v) => rand(v as string));
|
||||
data.values[idx] = v;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user