mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 19:17:56 -05:00
fix: Show Model after Hide Model is saved for a model that had no saved settings (#32368)
This commit is contained in:
1 file changed
+4
-1
@@ -485,7 +485,10 @@
|
||||
model = { ...model, ...(isPresetModel(model) ? {} : { base_model_id: null }), ...overrides };
|
||||
|
||||
if (savedModels.find((m: ModelListItem) => m.id === model.id) || isPresetModel(model)) {
|
||||
const res = await updateModelById(localStorage.token, model.id, model).catch((error) => {
|
||||
const res = await updateModelById(localStorage.token, model.id, {
|
||||
...savedModels.find((m: ModelListItem) => m.id === model.id),
|
||||
...model
|
||||
}).catch((error) => {
|
||||
return null;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user