Add missing formatting for values in table titles (#33566) (#33582)

This commit is contained in:
Joe Reuter 2019-03-22 09:16:34 +01:00 committed by GitHub
parent 8f6673dd17
commit 735ce6a55c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,7 @@ const LegacyResponseHandlerProvider = function () {
if (splitColumn) {
const splitAgg = splitColumn.aggConfig;
const splitColumnFormatter = splitAgg.fieldFormatter('text');
const splitMap = {};
let splitIndex = 0;
@ -52,7 +53,7 @@ const LegacyResponseHandlerProvider = function () {
const tableGroup = {
$parent: converted,
aggConfig: splitAgg,
title: `${splitValue}: ${splitAgg.makeLabel()}`,
title: `${splitColumnFormatter(splitValue)}: ${splitAgg.makeLabel()}`,
key: splitValue,
tables: []
};