mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-27 17:56:26 -04:00
fix: save a model whose description is switched from default back to custom (#30249)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user