diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx index 530a1fd9a21b2..78b2d3d884afc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx @@ -8,14 +8,12 @@ import {OverviewSchedulesRoot} from './OverviewSchedulesRoot'; import {OverviewSensorsRoot} from './OverviewSensorsRoot'; import {featureEnabled, useFeatureFlags} from '../app/Flags'; import {Route} from '../app/Route'; -import {useAutoMaterializeSensorFlag} from '../assets/AutoMaterializeSensorFlag'; import {AutomaterializationRoot} from '../assets/auto-materialization/AutomaterializationRoot'; import {InstanceBackfillsRoot} from '../instance/InstanceBackfillsRoot'; import {BackfillPage} from '../instance/backfill/BackfillPage'; export const OverviewRoot = () => { const {flagLegacyNav} = useFeatureFlags(); - const automaterializeSensorsFlagState = useAutoMaterializeSensorFlag(); return ( @@ -33,16 +31,7 @@ export const OverviewRoot = () => { path="/overview/sensors" render={() => (flagLegacyNav ? : )} /> - - !flagLegacyNav && automaterializeSensorsFlagState !== 'has-global-amp' ? ( - - ) : ( - - ) - } - /> + } /> {featureEnabled(FeatureFlag.flagLegacyRunsPage) ? [