[ML] Fixes display of regression stop stats if one is NaN (#72412)
This commit is contained in:
parent
e5c7e9a474
commit
66208fb73e
|
@ -446,7 +446,7 @@ export function getValuesFromResponse(response: RegressionEvaluateResponse) {
|
|||
if (response.regression.hasOwnProperty(statType)) {
|
||||
let currentStatValue =
|
||||
response.regression[statType as keyof RegressionEvaluateResponse['regression']]?.value;
|
||||
if (currentStatValue) {
|
||||
if (currentStatValue && !isNaN(currentStatValue)) {
|
||||
currentStatValue = Number(currentStatValue.toPrecision(DEFAULT_SIG_FIGS));
|
||||
}
|
||||
results[statType as keyof RegressionEvaluateExtractedResponse] = currentStatValue;
|
||||
|
|
Loading…
Reference in a new issue