mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-03 02:23:51 +00:00
fix: save a model whose description is switched from default back to custom (#30249)
This commit is contained in:
parent
669d37bea1
commit
9758f33b6c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue