From e7153db33b7605cef49a2dab7aeadb4aa5a14e84 Mon Sep 17 00:00:00 2001 From: Thomas Neirynck Date: Mon, 9 Mar 2020 11:37:30 -0400 Subject: [PATCH] formatting --- .../components/color/color_map_select.js | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/color_map_select.js b/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/color_map_select.js index ca50691ce105eb..0d4cf322d2a406 100644 --- a/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/color_map_select.js +++ b/x-pack/legacy/plugins/maps/public/layers/styles/vector/components/color/color_map_select.js @@ -93,22 +93,28 @@ export class ColorMapSelect extends Component { return null; } + let colorStopEditor; if (this.props.colorMapType === COLOR_MAP_TYPE.ORDINAL) { - return ( + colorStopEditor = ( ); - } + } else + colorStopEditor = ( + + ); return ( - + + {colorStopEditor} + ); } @@ -154,12 +160,8 @@ export class ColorMapSelect extends Component { return ( {this._renderColorMapSelections()} - - - - {this._renderColorStopsInput()} - + {this._renderColorStopsInput()} ); }