Commit c4d91e25 by Torkel Ödegaard Committed by GitHub

SeriesToRows: Fixes issue in transform so that value field is always named Value (#30054)

parent 388d0087
......@@ -134,7 +134,12 @@ describe('Series to rows', () => {
name: 'A',
fields: [
{ name: 'Time', type: FieldType.time, values: [100, 150, 200], config: { displayName: 'Random time' } },
{ name: 'Temp', type: FieldType.number, values: [1, 4, 5], config: { displayName: 'Temp' } },
{
name: 'Temp',
type: FieldType.number,
values: [1, 4, 5],
config: { displayName: 'Temp', displayNameFromDS: 'dsName' },
},
],
});
......
......@@ -93,7 +93,7 @@ const copyFieldStructure = (field: Field, name: string): Field => {
name: name,
values: new ArrayVector(),
config: {
...omit(field.config, 'displayName'),
...omit(field.config, ['displayName', 'displayNameFromDS']),
},
};
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment