Commit e978b73 1 parent c51aca0 commit e978b73 Copy full SHA for e978b73
File tree 1 file changed +0
-10
lines changed
public/pages/DefineDetector/components/CustomResultIndex
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ interface CustomResultIndexProps {
48
48
function CustomResultIndex ( props : CustomResultIndexProps ) {
49
49
const [ enabled , setEnabled ] = useState < boolean > ( ! ! props . resultIndex ) ;
50
50
const [ customResultIndexConditionsEnabled , setCustomResultIndexConditionsEnabled ] = useState < boolean > ( true ) ;
51
- const [ isDisabled , setIsDisabled ] = useState ( false ) ;
52
51
const customResultIndexMinAge = get ( props . formikProps , 'values.resultIndexMinAge' ) ;
53
52
const customResultIndexMinSize = get ( props . formikProps , 'values.resultIndexMinSize' ) ;
54
53
const customResultIndexTTL = get ( props . formikProps , 'values.resultIndexTtl' ) ;
@@ -67,14 +66,6 @@ function CustomResultIndex(props: CustomResultIndexProps) {
67
66
}
68
67
} , [ customResultIndexConditionsEnabled ] )
69
68
70
- useEffect ( ( ) => {
71
- if ( props . isEdit && ! get ( props . formikProps , 'values.flattenCustomResultIndex' ) ) {
72
- setIsDisabled ( true ) ;
73
- } else {
74
- setIsDisabled ( false ) ;
75
- }
76
- } , [ props . isEdit ] ) ;
77
-
78
69
const hintTextStyle = {
79
70
color : '#69707d' ,
80
71
fontSize : '12px' ,
@@ -171,7 +162,6 @@ function CustomResultIndex(props: CustomResultIndexProps) {
171
162
id = { 'flattenCustomResultIndex' }
172
163
label = "Enable flattened custom result index"
173
164
checked = { field . value ? field . value : get ( props . formikProps , 'values.flattenCustomResultIndex' ) }
174
- disabled = { isDisabled }
175
165
{ ...field }
176
166
/>
177
167
< p style = { hintTextStyle } > Flattening the custom result index will make it easier to query them on the dashboard. It also allows you to perform term aggregations on categorical fields.</ p >
You can’t perform that action at this time.
0 commit comments