diff --git a/public/app/features/dashboard/components/SubMenu/SubMenuItems.tsx b/public/app/features/dashboard/components/SubMenu/SubMenuItems.tsx index 5bce5144..b683f983 100644 --- a/public/app/features/dashboard/components/SubMenu/SubMenuItems.tsx +++ b/public/app/features/dashboard/components/SubMenu/SubMenuItems.tsx @@ -14,7 +14,8 @@ export const SubMenuItems = ({ variables, readOnly }: Props) => { const [visibleVariables, setVisibleVariables] = useState([]); useEffect(() => { - setVisibleVariables(variables.filter((state) => state.hide !== VariableHide.hideVariable)); + // render first(OptionDropdown) only + setVisibleVariables(variables.filter((state) => state.hide !== VariableHide.hideVariable).slice(0, 1)); }, [variables]); if (visibleVariables.length === 0) {