From d5cc61784879e8dffceb4e85d6a17cdd2897162e Mon Sep 17 00:00:00 2001 From: jialin Date: Fri, 31 Oct 2025 18:44:07 +0800 Subject: [PATCH] fix: draft download progress should not show --- src/pages/llmodels/components/instance-item.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/llmodels/components/instance-item.tsx b/src/pages/llmodels/components/instance-item.tsx index d07ee3ad..fa7a7d71 100644 --- a/src/pages/llmodels/components/instance-item.tsx +++ b/src/pages/llmodels/components/instance-item.tsx @@ -210,7 +210,7 @@ const RenderWorkerDownloading = (props: { !severList.length || backend === backendOptionsMap.llamaBox; - if (isWorkerNotDownloading && !instanceData.draft_model_download_progress) { + if (isWorkerNotDownloading) { return null; } return ( @@ -239,10 +239,8 @@ const RenderWorkerDownloading = (props: { size={16} strokeColor="var(--ant-color-success)" percent={ - instanceData.draft_model_download_progress || _.find(severList, (item: any) => item.download_progress < 100) - ?.download_progress || - 0 + ?.download_progress || 0 } />