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

This commit is contained in:
G30 2026-10-20 13:33:45 -04:00 • committed by GitHub
parent 523e5589d9
commit d8bef1ef90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
);