fix: worker labels not display

This commit is contained in:
jialin
2024-09-09 19:45:35 +08:00
parent ea2844ea7f
commit 21ef4e8f18
3 changed files with 2 additions and 3 deletions
+1
View File
@@ -31,6 +31,7 @@ const LabelSelector: React.FC<LabelSelectorProps> = ({
}); });
setLabelList(list); setLabelList(list);
} }
console.log('labelsData=========', labelsData);
}, [labels]); }, [labels]);
const handleLabelListChange = useCallback( const handleLabelListChange = useCallback(
@@ -240,7 +240,7 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
children children
} }
]; ];
}, [scheduleType]); }, [form, intl, gpuOptions, scheduleType, wokerSelector]);
return ( return (
<Collapse <Collapse
@@ -77,8 +77,6 @@ const UpdateModal: React.FC<AddModalProps> = (props) => {
? props.data?.gpu_selector.gpu_name ? props.data?.gpu_selector.gpu_name
: null : null
}); });
console.log('form.setFieldsValue', props.data, form.getFieldsValue());
} }
}; };