We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7325cd commit 0077fd4Copy full SHA for 0077fd4
redisinsight/ui/src/pages/browser/components/create-redisearch-index/CreateRedisearchIndex.tsx
@@ -56,7 +56,7 @@ const keyTypeOptions = KEY_TYPE_OPTIONS.map((item) => {
56
const initialFieldValue = (fieldTypeOptions: EuiSuperSelectOption<string>[], id = 0) => ({
57
id,
58
identifier: '',
59
- fieldType: fieldTypeOptions.length > 0 ? fieldTypeOptions[0].value : ''
+ fieldType: fieldTypeOptions[0]?.value || ''
60
})
61
62
const CreateRedisearchIndex = ({ onClosePanel, onCreateIndex }: Props) => {
0 commit comments