diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/feature_importance/decision_path_classification.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/feature_importance/decision_path_classification.tsx index 58cea7e80f6b0..831839675591d 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/feature_importance/decision_path_classification.tsx +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/feature_importance/decision_path_classification.tsx @@ -41,7 +41,9 @@ export const ClassificationDecisionPath: FC = ( baseline, }) => { const [currentClass, setCurrentClass] = useState( - getStringBasedClassName(topClasses[0].class_name) + Array.isArray(topClasses) && topClasses.length > 0 + ? getStringBasedClassName(topClasses[0].class_name) + : '' ); const selectedClass = topClasses.find( (t) => getStringBasedClassName(t.class_name) === getStringBasedClassName(currentClass) diff --git a/x-pack/test/functional/apps/ml/data_frame_analytics/results_view_content.ts b/x-pack/test/functional/apps/ml/data_frame_analytics/results_view_content.ts index 1e34a577f34a7..77cae02f3cfcb 100644 --- a/x-pack/test/functional/apps/ml/data_frame_analytics/results_view_content.ts +++ b/x-pack/test/functional/apps/ml/data_frame_analytics/results_view_content.ts @@ -268,8 +268,7 @@ export default function ({ getService }: FtrProviderContext) { }); for (const testData of testDataList) { - // FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/162427 - describe.skip(`${testData.suiteTitle}`, function () { + describe(`${testData.suiteTitle}`, function () { before(async () => { await ml.navigation.navigateToMl(); await ml.navigation.navigateToDataFrameAnalytics();