Skip to content

Commit

Permalink
Use proper lodash syntax (#77105)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
chrisronline and elasticmachine authored Sep 10, 2020
1 parent 5d12eda commit eacd602
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { getColor } from './get_color';
import { TimeseriesVisualization } from './timeseries_visualization';

function formatTicksFor(series) {
const format = get(series, '.metric.format', '0,0.0');
const units = get(series, '.metric.units', '');
const format = get(series, 'metric.format', '0,0.0');
const units = get(series, 'metric.units', '');

return function formatTicks(val) {
let formatted = numeral(val).format(format);
Expand Down

0 comments on commit eacd602

Please sign in to comment.