fix(style): do not display draft model after done

This commit is contained in:
jialin
2025-11-05 10:02:25 +08:00
parent 4c22d08da5
commit 333b430b97
3 changed files with 6 additions and 5 deletions
@@ -210,10 +210,11 @@ const RenderWorkerDownloading = (props: {
!severList.length ||
backend === backendOptionsMap.llamaBox;
const isDragftModelNotDownloading =
instanceData.draft_model_download_progress <= 0;
const isDraftModeNotDownloading =
!instanceData.draft_model_download_progress ||
instanceData.draft_model_download_progress >= 100;
if (isWorkerNotDownloading && isDragftModelNotDownloading) {
if (isWorkerNotDownloading && isDraftModeNotDownloading) {
return null;
}
return (