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

This commit is contained in:
G30
2026-09-20 23:42:44 -05:00
committed by GitHub
parent 669d37bea1
commit 9758f33b6c
@@ -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;
}