mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Don't pass empty format configs to the fieldFormats helper (#27168)
This commit is contained in:
parent
ce7265c554
commit
9f17c4ae39
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ export function fieldFormatMapFactory(indexPatternSavedObject, fieldFormats) {
|
|||
const fieldFormatMap = JSON.parse(indexPatternSavedObject.attributes.fieldFormatMap);
|
||||
Object.keys(fieldFormatMap).forEach((fieldName) => {
|
||||
const formatConfig = fieldFormatMap[fieldName];
|
||||
formatsMap.set(fieldName, fieldFormats.getInstance(formatConfig));
|
||||
|
||||
if (!_.isEmpty(formatConfig)) {
|
||||
formatsMap.set(fieldName, fieldFormats.getInstance(formatConfig));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue