Skip to content

Commit

Permalink
Use proper lodash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Sep 9, 2020
1 parent 78f6410 commit b357d06
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 b357d06

Please sign in to comment.