Skip to content

Commit

Permalink
🔥 Remove unused props
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jul 14, 2020
1 parent 60b02e3 commit 8f6047e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/plugins/vis_type_table/public/table_vis_fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ export const createTableVisFn = (): ExpressionFunctionDefinition<
},
},
fn(input, args) {
const { title, ...visConfig } = args.visConfig && JSON.parse(args.visConfig);
const visConfig = args.visConfig && JSON.parse(args.visConfig);
const convertedData = tableVisResponseHandler(input, visConfig.dimensions);

return {
type: 'render',
as: 'visualization',
value: {
title,
visData: convertedData,
visType: 'table',
visConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class VisualizationChart extends React.Component<VisualizationChartProps> {
// has been initialized
throw new Error('Visualization implementation was not initialized on first render.');
}
// need to pass the title here again to refresh in case of save in-place or renaming
return this.visualization.render(visData, { ...visParams, title: vis.title });

return this.visualization.render(visData, visParams);
})
);

Expand Down

0 comments on commit 8f6047e

Please sign in to comment.