diff --git a/app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx b/app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx index 2c54ce0dab..ee2cea1922 100644 --- a/app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx +++ b/app/client/src/pages/AppIDE/components/AppSettings/AppSettings.tsx @@ -34,6 +34,7 @@ import AnalyticsUtil from "ee/utils/AnalyticsUtil"; import { Divider } from "@appsmith/ads"; import { ImportAppSettings } from "./components/ImportAppSettings"; import { getIsAnvilLayout } from "layoutSystems/anvil/integrations/selectors"; +import { getIsAiAgentFlowEnabled } from "ee/selectors/aiAgentSelectors"; export enum AppSettingsTabs { General, @@ -125,7 +126,7 @@ function AppSettings() { }; }, [selectedTab]); - const SectionHeadersConfig: SectionHeaderProps[] = [ + let SectionHeadersConfig: SectionHeaderProps[] = [ { id: "t--general-settings-header", icon: "settings-v3", @@ -193,6 +194,14 @@ function AppSettings() { }, ]; + const isAiAgentFlowEnabled = useSelector(getIsAiAgentFlowEnabled); + + if (isAiAgentFlowEnabled) { + SectionHeadersConfig = SectionHeadersConfig.filter( + (config) => config.id !== "t--navigation-settings-header", + ); + } + // 50 px height of the sectionHeader item // 41px height of pages title // 1px + 20px divider + spacing