@@ -63,9 +63,9 @@ export default function BiasSettings({
6363 } ) ;
6464 const [ iter , setIter ] = useState ( [ 10 ] ) ;
6565 const [ clusters , setClusters ] = useState ( [ 25 ] ) ;
66- const [ defaultDataType , setDefaultDataType ] = useState <
67- 'numeric' | 'categorical'
68- > ( 'numeric' ) ;
66+ // const [defaultDataType, setDefaultDataType] = useState<
67+ // 'numeric' | 'categorical'
68+ // >('numeric');
6969
7070 const [ performanceMetricColumnError , setPerformanceMetricColumnError ] =
7171 useState < string | null > ( null ) ;
@@ -85,7 +85,7 @@ export default function BiasSettings({
8585 const isReset = stringified . length === 0 ;
8686 if ( isReset ) {
8787 form . reset ( ) ;
88- setDefaultDataType ( 'numeric' ) ;
88+ // setDefaultDataType('numeric');
8989 } else {
9090 form . setValue ( 'file' , stringified ) ;
9191 }
@@ -113,10 +113,10 @@ export default function BiasSettings({
113113
114114 if ( numericColumns . length === Object . keys ( data [ 0 ] || { } ) . length ) {
115115 form . setValue ( 'dataType' , 'numeric' ) ;
116- setDefaultDataType ( 'numeric' ) ;
116+ // setDefaultDataType('numeric');
117117 } else {
118118 form . setValue ( 'dataType' , 'categorical' ) ;
119- setDefaultDataType ( 'categorical' ) ;
119+ // setDefaultDataType('categorical');
120120 }
121121 }
122122
@@ -240,7 +240,7 @@ export default function BiasSettings({
240240 ) }
241241 />
242242 </ div >
243- < div className = "grid gap-3" >
243+ { /* <div className="grid gap-3">
244244 <FormField
245245 control={form.control}
246246 name="dataType"
@@ -275,7 +275,7 @@ export default function BiasSettings({
275275 </FormItem>
276276 )}
277277 />
278- </ div >
278+ </div> */ }
279279 </ fieldset >
280280
281281 < fieldset className = "grid gap-6 rounded-lg border p-4" >
0 commit comments