mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Lens] chore: remove dead code (#107882)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
5480c4d0f4
commit
6008b5ae55
1 changed files with 1 additions and 18 deletions
|
@ -347,23 +347,7 @@ export const InnerIndexPatternDataPanel = function InnerIndexPatternDataPanel({
|
|||
supportedFieldTypes.has(field.type)
|
||||
);
|
||||
const sorted = allSupportedTypesFields.sort(sortFields);
|
||||
let groupedFields;
|
||||
// optimization before existingFields are synced
|
||||
if (!hasSyncedExistingFields) {
|
||||
groupedFields = {
|
||||
...defaultFieldGroups,
|
||||
...groupBy(sorted, (field) => {
|
||||
if (field.type === 'document') {
|
||||
return 'specialFields';
|
||||
} else if (field.meta) {
|
||||
return 'metaFields';
|
||||
} else {
|
||||
return 'emptyFields';
|
||||
}
|
||||
}),
|
||||
};
|
||||
}
|
||||
groupedFields = {
|
||||
const groupedFields = {
|
||||
...defaultFieldGroups,
|
||||
...groupBy(sorted, (field) => {
|
||||
if (field.type === 'document') {
|
||||
|
@ -455,7 +439,6 @@ export const InnerIndexPatternDataPanel = function InnerIndexPatternDataPanel({
|
|||
return fieldGroupDefinitions;
|
||||
}, [
|
||||
allFields,
|
||||
hasSyncedExistingFields,
|
||||
fieldInfoUnavailable,
|
||||
filters.length,
|
||||
existenceFetchTimeout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue