Skip to content

Commit 14b1f7a

Browse files
committed
revert
1 parent 2b8f60d commit 14b1f7a

File tree

1 file changed

+2
-3
lines changed
  • x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch

1 file changed

+2
-3
lines changed

x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/chart_switch/chart_switch.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)