From 27761566c9a7fc7dfd59d19bb48c14914ecfcb7f Mon Sep 17 00:00:00 2001 From: jialin Date: Fri, 4 Jul 2025 17:48:06 +0800 Subject: [PATCH] fix: collpase instance error --- src/pages/llmodels/components/instance-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/llmodels/components/instance-item.tsx b/src/pages/llmodels/components/instance-item.tsx index 89fa5d2e..19aad117 100644 --- a/src/pages/llmodels/components/instance-item.tsx +++ b/src/pages/llmodels/components/instance-item.tsx @@ -159,9 +159,9 @@ const RenderWorkerDownloading = (props: { distributed_servers || {}; let severList: DistributedServerItem[] = []; - if (ray_actors.length > 0) { + if (ray_actors?.length > 0) { severList = ray_actors; - } else if (subordinate_workers.length > 0) { + } else if (subordinate_workers?.length > 0) { severList = subordinate_workers; }