mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
a6cdbe45e2
commit
077607f50e
1 changed files with 1 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { defaultsDeep, isEmpty, uniq, compact } from 'lodash';
|
||||
import { defaultsDeep, uniq, compact } from 'lodash';
|
||||
import { callClusterFactory } from '../../../xpack_main';
|
||||
import {
|
||||
LOGGING_TAG,
|
||||
|
@ -169,9 +169,6 @@ export class BulkUploader {
|
|||
// convert the raw data to a nested object by taking each payload through
|
||||
// its formatter, organizing it per-type
|
||||
const typesNested = rawData.reduce((accum, { type, result }) => {
|
||||
if (isEmpty(result)) {
|
||||
return accum;
|
||||
}
|
||||
const { type: uploadType, payload: uploadData } = collectorSet.getCollectorByType(type).formatForBulkUpload(result);
|
||||
return defaultsDeep(accum, { [uploadType]: uploadData });
|
||||
}, {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue