fix: save a model whose description is switched from default back to custom (#30249)

This commit is contained in:
G30 2026-09-21 00:42:44 -04:00 • committed by GitHub
parent 669d37bea1
commit 9758f33b6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,7 +328,8 @@
info.meta.capabilities = capabilities;
if (enableDescription) {
info.meta.description = info.meta.description.trim() === '' ? null : info.meta.description;
info.meta.description =
(info.meta.description ?? '').trim() === '' ? null : info.meta.description;
} else {
info.meta.description = null;
}