File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -405,9 +405,8 @@ function getTopSuggestion(
405405 ) ;
406406
407407 return (
408- suggestions . find ( ( s ) => s . changeType === 'unchanged' ) || // switching to vis that doesn't change anything is the best option
409- suggestions . find ( ( s ) => s . changeType === 'reduced' ) || // switching to vis that reduces data model if possible
410- suggestions . find ( ( s ) => s . keptLayerIds . some ( ( id ) => id === layerId ) ) || // switching to vis that at least keeps the chosen layer
408+ suggestions . find ( ( s ) => s . changeType === 'unchanged' || s . changeType === 'reduced' ) ||
409+ suggestions . find ( ( s ) => s . keptLayerIds . some ( ( id ) => id === layerId ) ) ||
411410 suggestions [ 0 ]
412411 ) ;
413412}
You can’t perform that action at this time.
0 commit comments