@@ -48,14 +48,16 @@ import {
4848} from 'src/dataExplorer/context/persistance'
4949import { PROJECT_NAME , PROJECT_NAME_PLURAL } from 'src/flows'
5050import { SCRIPT_EDITOR_PARAMS } from 'src/dataExplorer/components/resources'
51+ import { CLOUD } from 'src/shared/constants'
52+
5153
5254const DataExplorerPageHeader : FC = ( ) => {
5355 const { scriptQueryBuilder, setScriptQueryBuilder} =
5456 useContext ( AppSettingContext )
5557 const { resource, save} = useContext ( PersistanceContext )
5658 const isNewIOxOrg = useSelector ( selectIsNewIOxOrg )
5759 const shouldShowDataExplorerToggle =
58- ! isNewIOxOrg || isFlagEnabled ( 'showOldDataExplorerInNewIOx' )
60+ ( ! isNewIOxOrg || isFlagEnabled ( 'showOldDataExplorerInNewIOx' ) ) && CLOUD
5961
6062 const history = useHistory ( )
6163 const dispatch = useDispatch ( )
@@ -130,7 +132,7 @@ const DataExplorerPage: FC = () => {
130132 useSelector ( selectIsNewIOxOrg ) &&
131133 ! isFlagEnabled ( 'showOldDataExplorerInNewIOx' )
132134 const shouldShowNotebooks = useSelector ( selectShouldShowNotebooks )
133- const shouldShowNewExplorer = scriptQueryBuilder || isNewIOxOrg
135+ const shouldShowNewExplorer = ( scriptQueryBuilder || isNewIOxOrg ) && CLOUD
134136
135137 const shouldShowSaveAsButton =
136138 ! useSelector ( selectIsNewIOxOrg ) ||
0 commit comments