[TSVB] Remove remaining lodash.set usage (#65846) (#65862)

This commit is contained in:
Tim Roes 2020-05-08 18:49:02 +02:00 committed by GitHub
parent 4c0f26b6a2
commit 76d28559b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,8 @@ import { buildProcessorFunction } from '../build_processor_function';
import { processors } from '../response_processors/table';
import { getLastValue } from '../../../../common/get_last_value';
import regression from 'regression';
import { first, get, set } from 'lodash';
import { first, get } from 'lodash';
import { overwrite } from '../helpers';
import { getActiveSeries } from '../helpers/get_active_series';
export function processBucket(panel) {
@ -35,7 +36,7 @@ export function processBucket(panel) {
const timeseries = {
buckets: get(bucket, `${series.id}.buckets`),
};
set(bucket, series.id, { meta, timeseries });
overwrite(bucket, series.id, { meta, timeseries });
}
const processor = buildProcessorFunction(processors, bucket, panel, series);