Skip to content

Commit

Permalink
[ML] Fixes formatting of fields in index data visualizer (#82593) (#8…
Browse files Browse the repository at this point in the history
  • Loading branch information
peteharverson authored Nov 12, 2020
1 parent 2832d66 commit 4aed05c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export const Page: FC = () => {
if (fieldData !== undefined) {
const metricConfig: FieldVisConfig = {
...fieldData,
fieldFormat: field.format,
fieldFormat: currentIndexPattern.getFormatterForField(field),
type: ML_JOB_FIELD_TYPES.NUMBER,
loading: true,
aggregatable: true,
Expand Down Expand Up @@ -617,7 +617,7 @@ export const Page: FC = () => {

const nonMetricConfig = {
...fieldData,
fieldFormat: field.format,
fieldFormat: currentIndexPattern.getFormatterForField(field),
aggregatable: field.aggregatable,
scripted: field.scripted,
loading: fieldData.existsInDocs,
Expand Down

0 comments on commit 4aed05c

Please sign in to comment.