File tree Expand file tree Collapse file tree
x-pack/plugins/ml/public/application/components/data_grid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import { euiDataGridStyle, euiDataGridToolbarSettings } from './common';
3131import { UseIndexDataReturnType } from './types' ;
3232import { DecisionPathPopover } from './feature_importance/decision_path_popover' ;
3333import { TopClasses } from '../../../../common/types/feature_importance' ;
34+ import { DEFAULT_RESULTS_FIELD } from '../../data_frame_analytics/common/constants' ;
3435
3536// TODO Fix row hovering + bar highlighting
3637// import { hoveredRow$ } from './column_chart';
@@ -106,7 +107,7 @@ export const DataGrid: FC<Props> = memo(
106107 const row = data [ rowIndex ] ;
107108 if ( ! row ) return < div /> ;
108109 // if resultsField for some reason is not available then use ml
109- const mlResultsField = resultsField ?? 'ml' ;
110+ const mlResultsField = resultsField ?? DEFAULT_RESULTS_FIELD ;
110111 const parsedFIArray = row [ mlResultsField ] . feature_importance ;
111112 let predictedValue : string | number | undefined ;
112113 let topClasses : TopClasses = [ ] ;
You can’t perform that action at this time.
0 commit comments