Skip to content

Commit

Permalink
Avoid applying formatting on already formatted value (#41769) (#43092)
Browse files Browse the repository at this point in the history
  • Loading branch information
markov00 authored Aug 13, 2019
1 parent 2951582 commit 5b1d545
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

import $ from 'jquery';
import { getFormat } from '../../../visualize/loader/pipeline_helpers/utilities';
import template from './_pointseries_tooltip.html';

export function PointSeriesTooltipFormatterProvider($compile, $rootScope) {
Expand Down Expand Up @@ -56,8 +55,7 @@ export function PointSeriesTooltipFormatterProvider($compile, $rootScope) {
}
if (datum.series && datum.parent) {
const dimension = datum.parent;
const seriesFormatter = getFormat(dimension.format);
addDetail(dimension.title, seriesFormatter.convert(datum.series));
addDetail(dimension.title, datum.series);
}
if (datum.tableRaw) {
addDetail(datum.tableRaw.title, datum.tableRaw.value);
Expand Down

0 comments on commit 5b1d545

Please sign in to comment.