Skip to content

Commit

Permalink
fix: only enable new data explorer on cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyssmith2nd committed Apr 26, 2023
1 parent 0c844dc commit 9d25a2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dataExplorer/components/DataExplorerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ import {
} from 'src/dataExplorer/context/persistance'
import {PROJECT_NAME, PROJECT_NAME_PLURAL} from 'src/flows'
import {SCRIPT_EDITOR_PARAMS} from 'src/dataExplorer/components/resources'
import {CLOUD} from 'src/shared/constants'


const DataExplorerPageHeader: FC = () => {
const {scriptQueryBuilder, setScriptQueryBuilder} =
useContext(AppSettingContext)
const {resource, save} = useContext(PersistanceContext)
const isNewIOxOrg = useSelector(selectIsNewIOxOrg)
const shouldShowDataExplorerToggle =
!isNewIOxOrg || isFlagEnabled('showOldDataExplorerInNewIOx')
(!isNewIOxOrg || isFlagEnabled('showOldDataExplorerInNewIOx')) && CLOUD

const history = useHistory()
const dispatch = useDispatch()
Expand Down Expand Up @@ -130,7 +132,7 @@ const DataExplorerPage: FC = () => {
useSelector(selectIsNewIOxOrg) &&
!isFlagEnabled('showOldDataExplorerInNewIOx')
const shouldShowNotebooks = useSelector(selectShouldShowNotebooks)
const shouldShowNewExplorer = scriptQueryBuilder || isNewIOxOrg
const shouldShowNewExplorer = (scriptQueryBuilder || isNewIOxOrg) && CLOUD

const shouldShowSaveAsButton =
!useSelector(selectIsNewIOxOrg) ||
Expand Down

0 comments on commit 9d25a2f

Please sign in to comment.