Skip to content

Commit 385464e

Browse files
feat(buckets): don't show explicit schema when an iox org creates a bucket (#6166)
1 parent ec4a1b8 commit 385464e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/buckets/components/createBucketForm/CreateBucketOverlay.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Libraries
22
import React, {FC, useContext} from 'react'
3+
import {useSelector} from 'react-redux'
34

45
// Components
56
import {Overlay} from '@influxdata/clockface'
@@ -11,9 +12,15 @@ import {OverlayContext} from 'src/overlays/components/OverlayController'
1112
// Constants
1213
import {getBucketOverlayWidth} from 'src/buckets/constants'
1314

15+
// Selectors
16+
import {isOrgIOx} from 'src/organizations/selectors'
17+
1418
const CreateBucketOverlay: FC = () => {
1519
const {onClose, params} = useContext(OverlayContext)
16-
const useSimplifiedBucketForm = params?.useSimplifiedBucketForm
20+
const isIOx = useSelector(isOrgIOx)
21+
22+
// IOx currently doesn't have the capability to handle explicit schemas
23+
const useSimplifiedBucketForm = isIOx ? true : params?.useSimplifiedBucketForm
1724
const callbackAfterBucketCreation = params?.callbackAfterBucketCreation
1825

1926
return (

0 commit comments

Comments
 (0)