diff --git a/src/plugins/vis_builder/public/application/components/right_nav.tsx b/src/plugins/vis_builder/public/application/components/right_nav.tsx index d4ec1180c528..70b22d600ae2 100644 --- a/src/plugins/vis_builder/public/application/components/right_nav.tsx +++ b/src/plugins/vis_builder/public/application/components/right_nav.tsx @@ -55,7 +55,7 @@ export const RightNav = () => { style: types.get(newVisName)?.ui.containerConfig.style.defaults, }; - if (persistedAggParams.length <= aggConfigParams.length) return setConfirmAggs(newVis); + if (persistedAggParams.length < aggConfigParams.length) return setConfirmAggs(newVis); dispatch(setActiveVisualization(newVis)); },