From ecf4730a2bc6c95ca882378127c7d2772e5c779f Mon Sep 17 00:00:00 2001 From: Daichi Kato <83964523+porink0424@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:55:25 +0900 Subject: [PATCH] Remove unnecessary toString() Co-authored-by: c-bata --- optuna_dashboard/ts/graphUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optuna_dashboard/ts/graphUtil.ts b/optuna_dashboard/ts/graphUtil.ts index c9829a27..7131032f 100644 --- a/optuna_dashboard/ts/graphUtil.ts +++ b/optuna_dashboard/ts/graphUtil.ts @@ -45,7 +45,7 @@ const getAxisInfoForCategoricalParams = ( ) const indices = distribution.choices - .map((c) => c?.value.toString() ?? "null") + .map((c) => c?.value ?? "null") .sort((a, b) => a.toLowerCase() < b.toLowerCase() ? -1