From 4daf088d1231e5f5df292d4cc0a7788254ad2c97 Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Wed, 8 Jul 2020 13:53:52 -0400 Subject: [PATCH] fix type name typo --- .../application/data_frame_analytics/common/analytics.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts b/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts index c23ed0e6b3665..618ea5184007d 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/common/analytics.ts @@ -422,7 +422,7 @@ export const useRefreshAnalyticsList = ( const DEFAULT_SIG_FIGS = 3; -interface RegressionEvaluteExtractedResponse { +interface RegressionEvaluateExtractedResponse { mse: number | string; msle: number | string; huber: number | string; @@ -432,7 +432,7 @@ interface RegressionEvaluteExtractedResponse { export const EMPTY_STAT = '--'; export function getValuesFromResponse(response: RegressionEvaluateResponse) { - const results: RegressionEvaluteExtractedResponse = { + const results: RegressionEvaluateExtractedResponse = { mse: EMPTY_STAT, msle: EMPTY_STAT, huber: EMPTY_STAT, @@ -447,7 +447,7 @@ export function getValuesFromResponse(response: RegressionEvaluateResponse) { if (currentStatValue) { currentStatValue = Number(currentStatValue.toPrecision(DEFAULT_SIG_FIGS)); } - results[statType as keyof RegressionEvaluteExtractedResponse] = currentStatValue; + results[statType as keyof RegressionEvaluateExtractedResponse] = currentStatValue; } } }