fix: edit gpu_selector failed

This commit is contained in:
jialin
2025-09-17 19:53:40 +08:00
parent 4d9dec8511
commit bf400547e1
17 changed files with 296 additions and 544 deletions
+2 -4
View File
@@ -123,7 +123,7 @@ const Models: React.FC<ModelsProps> = ({
loadend,
total
}) => {
const { getGPUOptionList, generateFormValues, clusterList, getClusterList } =
const { generateFormValues, clusterList, getClusterList } =
useFormInitialValues();
const { saveScrollHeight, restoreScrollHeight } = useBodyScroll();
const [updateFormInitials, setUpdateFormInitials] = useState<{
@@ -188,9 +188,7 @@ const Models: React.FC<ModelsProps> = ({
useEffect(() => {
const getData = async () => {
const res = await getClusterList();
const clusterId = res[0]?.value;
await getGPUOptionList({ clusterId });
await getClusterList();
};
getData();
return () => {