From 21ef4e8f18d37a4b229d412d75add30cdf75fd4f Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 9 Sep 2024 19:44:40 +0800 Subject: [PATCH] fix: worker labels not display --- src/components/label-selector/index.tsx | 1 + src/pages/llmodels/components/advance-config.tsx | 2 +- src/pages/llmodels/components/update-modal.tsx | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/label-selector/index.tsx b/src/components/label-selector/index.tsx index 4127942c..e63eeafd 100644 --- a/src/components/label-selector/index.tsx +++ b/src/components/label-selector/index.tsx @@ -31,6 +31,7 @@ const LabelSelector: React.FC = ({ }); setLabelList(list); } + console.log('labelsData=========', labelsData); }, [labels]); const handleLabelListChange = useCallback( diff --git a/src/pages/llmodels/components/advance-config.tsx b/src/pages/llmodels/components/advance-config.tsx index f4ce7f45..a1f6bc3d 100644 --- a/src/pages/llmodels/components/advance-config.tsx +++ b/src/pages/llmodels/components/advance-config.tsx @@ -240,7 +240,7 @@ const AdvanceConfig: React.FC = (props) => { children } ]; - }, [scheduleType]); + }, [form, intl, gpuOptions, scheduleType, wokerSelector]); return ( = (props) => { ? props.data?.gpu_selector.gpu_name : null }); - - console.log('form.setFieldsValue', props.data, form.getFieldsValue()); } };