fix: hiding, toggling or editing a base model right after Make Public is saved (#32655)

This commit is contained in:
G30 authored and GitHub committed 2026-10-21 02:33:45 +09:00
1 parent 523e5589d9
commit d8bef1ef90
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
);