From 6c7997ef00bf060f4fe5f1c6bd9595f870bd79dd Mon Sep 17 00:00:00 2001 From: Ashwin P Chandran Date: Fri, 31 Mar 2023 11:08:21 -0700 Subject: [PATCH] Fixes comparison --- .../vis_builder/public/application/components/right_nav.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); },