Skip to content

Commit

Permalink
[TSVB] Remove remaining lodash.set usage (#65846) (#65862)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes committed May 8, 2020
1 parent 4c0f26b commit 76d2855
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit 76d2855

Please sign in to comment.