mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
#6537 call the field formatter instead of the toString() function
This commit is contained in:
parent
e67f6ebf5c
commit
7dc7fd5b57
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ module.directive('kbnRows', function ($compile, $rootScope, getAppState, Private
|
|||
if (contents.type === 'bucket' && contents.aggConfig.field() && contents.aggConfig.field().filterable) {
|
||||
$cell = createAggConfigResultCell(contents);
|
||||
}
|
||||
contents = contents.toString('html');
|
||||
|
||||
let formatter = contents.aggConfig.fieldFormatter('html');
|
||||
contents = formatter(contents.value,
|
||||
contents.aggConfig.params && contents.aggConfig.params.field && contents.aggConfig.params.field.type);
|
||||
|
||||
}
|
||||
|
||||
if (_.isObject(contents)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue