Skip to content

Commit

Permalink
Fix vislib regression from elastic#80744.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Dec 9, 2020
1 parent d646f9e commit 256d7b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/vis_type_vislib/public/to_ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,11 @@ export const toExpressionAst: VisToExpressionAst<BasicVislibParams> = async (vis

visConfig.dimensions = dimensions;

const configStr = JSON.stringify(visConfig).replace(/\\/g, `\\\\`).replace(/'/g, `\\'`);
const visTypeXy = buildExpressionFunction<VisTypeVislibExpressionFunctionDefinition>(
vislibVisName,
{
type: vis.type.name,
visConfig: configStr,
visConfig: JSON.stringify(visConfig),
}
);

Expand Down

0 comments on commit 256d7b1

Please sign in to comment.