mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: hiding, toggling or editing a base model right after Make Public is saved (#32655)
This commit is contained in:
parent
523e5589d9
commit
d8bef1ef90
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue