From da14f2d86ae27811d41f612362ade2cde73224eb Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Thu, 4 May 2023 15:18:46 +0200 Subject: [PATCH] rename variable --- .../ml/public/application/model_management/models_list.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ml/public/application/model_management/models_list.tsx b/x-pack/plugins/ml/public/application/model_management/models_list.tsx index dfb6e85ae6ba6..8ac60485d6d58 100644 --- a/x-pack/plugins/ml/public/application/model_management/models_list.tsx +++ b/x-pack/plugins/ml/public/application/model_management/models_list.tsx @@ -285,11 +285,11 @@ export const ModelsList: FC = ({ : ''; }); - const curatedModels = models.filter((model) => + const elasticModels = models.filter((model) => ELASTIC_MODEL_DEFINITIONS.hasOwnProperty(model.model_id) ); - if (curatedModels.length > 0) { - for (const model of curatedModels) { + if (elasticModels.length > 0) { + for (const model of elasticModels) { if (model.state === MODEL_STATE.STARTED) { // no need to check for the download status if the model has been deployed continue;