mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-28 16:11:43 -05:00
fix: hiding, toggling or editing a base model right after Make Public is saved (#32655)
This commit is contained in:
1 file changed
+3
@@ -623,6 +623,9 @@
|
||||
).catch(() => null);
|
||||
|
||||
if (res) {
|
||||
if (!savedModels.find((m: ModelListItem) => m.id === model.id)) {
|
||||
savedModels = [...savedModels, res];
|
||||
}
|
||||
models = models.map((m) =>
|
||||
m.id === model.id ? { ...m, access_grants: res.access_grants ?? nextAccessGrants } : m
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user