Skip to content

Commit

Permalink
Explicitly pass params (elastic#84107) (elastic#84195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil authored Nov 24, 2020
1 parent 926df69 commit 7439b9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/vis_type_tagcloud/public/to_ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,14 @@ export const toExpressionAst = (vis: Vis<TagCloudVisParams>, params: BuildPipeli
});

const schemas = getVisSchemas(vis, params);
const { scale, orientation, minFontSize, maxFontSize, showLabel } = vis.params;

const tagcloud = buildExpressionFunction<TagcloudExpressionFunctionDefinition>('tagcloud', {
...vis.params,
scale,
orientation,
minFontSize,
maxFontSize,
showLabel,
metric: prepareDimension(schemas.metric[0]),
});

Expand Down

0 comments on commit 7439b9d

Please sign in to comment.