Skip to content

Commit 9d25a2f

Browse files
fix: only enable new data explorer on cloud
1 parent 0c844dc commit 9d25a2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/dataExplorer/components/DataExplorerPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@ import {
4848
} from 'src/dataExplorer/context/persistance'
4949
import {PROJECT_NAME, PROJECT_NAME_PLURAL} from 'src/flows'
5050
import {SCRIPT_EDITOR_PARAMS} from 'src/dataExplorer/components/resources'
51+
import {CLOUD} from 'src/shared/constants'
52+
5153

5254
const 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

Comments
 (0)