diff --git a/src/components/sidebar-menu/SidebarMenu.tsx b/src/components/sidebar-menu/SidebarMenu.tsx index 724800089..84aa5afce 100644 --- a/src/components/sidebar-menu/SidebarMenu.tsx +++ b/src/components/sidebar-menu/SidebarMenu.tsx @@ -35,8 +35,7 @@ const SidebarMenu: FC = ({ const isTabActive = tabKey === activeTab - const enableTooltipError = - !isTabActive && errorTooltipHolders && errorTooltipHolders[tabKey] + const enableTooltipError = !isTabActive && errorTooltipHolders?.[tabKey] const toolTip = enableTooltipError && (