fix: model hide issue

This commit is contained in:
Timothy Jaeryang Baek 2025-04-12 18:49:49 -07:00
parent bde89fd29e
commit f6c8184a74

View File

@ -108,7 +108,15 @@
toast.success($i18n.t('Model updated successfully'));
}
} else {
const res = await createNewModel(localStorage.token, model).catch((error) => {
const res = await createNewModel(localStorage.token, {
meta: {},
id: model.id,
name: model.name,
base_model_id: null,
params: {},
access_control: {},
...model
}).catch((error) => {
return null;
});