From 7f98197f615bc0d8474a18c70ecf66b60e531274 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Tue, 21 Jul 2020 18:12:19 +0200 Subject: [PATCH] remove unused fragment --- .../xy_visualization/xy_config_panel.tsx | 58 +++++++++---------- 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/x-pack/plugins/lens/public/xy_visualization/xy_config_panel.tsx b/x-pack/plugins/lens/public/xy_visualization/xy_config_panel.tsx index f2aff3141046f..59c4b393df467 100644 --- a/x-pack/plugins/lens/public/xy_visualization/xy_config_panel.tsx +++ b/x-pack/plugins/lens/public/xy_visualization/xy_config_panel.tsx @@ -160,37 +160,35 @@ export function XyToolbar(props: VisualizationToolbarProps) { }) } > - <> - + { + return { + value: id, + dropdownDisplay: ( + <> + {title} + +

{description}

+
+ + ), + inputDisplay: title, + }; })} - > - { - return { - value: id, - dropdownDisplay: ( - <> - {title} - -

{description}

-
- - ), - inputDisplay: title, - }; - })} - valueOfSelected={props.state?.fittingFunction || 'None'} - onChange={(value) => props.setState({ ...props.state, fittingFunction: value })} - itemLayoutAlign="top" - hasDividers - /> -
- + valueOfSelected={props.state?.fittingFunction || 'None'} + onChange={(value) => props.setState({ ...props.state, fittingFunction: value })} + itemLayoutAlign="top" + hasDividers + /> +