mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Fix telemetry CLI to write empty properties collection (#205746)
Follow-up of #205613. Remove check blocking empty properties from writing.
This commit is contained in:
parent
e8502c9fd7
commit
aa8195ced4
2 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,7 @@ export function writeToFileTask({ roots }: TaskContext) {
|
|||
return roots.map((root) => ({
|
||||
task: async () => {
|
||||
const fullPath = path.resolve(process.cwd(), root.config.output);
|
||||
if (root.mapping && Object.keys(root.mapping.properties).length > 0) {
|
||||
if (root.mapping) {
|
||||
// Sort first-level properties alphabetically
|
||||
root.mapping.properties = Object.fromEntries(
|
||||
Object.entries(root.mapping.properties).sort(([a], [b]) => {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{
|
||||
"properties": {
|
||||
}
|
||||
"properties": {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue