fix: backend is not updated after changing model

This commit is contained in:
jialin
2025-04-02 11:24:26 +08:00
parent 28a84a90cf
commit b1d7bb9fd7
6 changed files with 40 additions and 18 deletions
@@ -84,7 +84,7 @@ const UpdateModal: React.FC<AddModalProps> = (props) => {
};
// trigger from local_path change or backend change
const handleBackendChangeHook = async () => {
const handleBackendChangeBefore = async () => {
const localPath = form.getFieldValue?.('local_path');
const backend = form.getFieldValue?.('backend');
@@ -118,7 +118,7 @@ const UpdateModal: React.FC<AddModalProps> = (props) => {
}
form.setFieldValue('backend_version', '');
handleSetGPUIds(val);
handleBackendChangeHook();
handleBackendChangeBefore();
};
const handleOnFocus = () => {