From b6d5b4565007d51cb4d753e2a6fe9e5183436b82 Mon Sep 17 00:00:00 2001 From: jialin Date: Thu, 12 Sep 2024 10:28:20 +0800 Subject: [PATCH] fix: gpu selector edit same key --- src/pages/llmodels/components/update-modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/llmodels/components/update-modal.tsx b/src/pages/llmodels/components/update-modal.tsx index 53d5bcc5..181a601e 100644 --- a/src/pages/llmodels/components/update-modal.tsx +++ b/src/pages/llmodels/components/update-modal.tsx @@ -74,7 +74,7 @@ const UpdateModal: React.FC = (props) => { ...props.data, scheduleType: props.data?.gpu_selector ? 'manual' : 'auto', gpu_selector: props.data?.gpu_selector - ? props.data?.gpu_selector.gpu_name + ? `${props.data?.gpu_selector.worker_name}-${props.data?.gpu_selector.gpu_name}-${props.data?.gpu_selector.gpu_index}` : null }); }