mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
fix(images): add null guard for config in onMount to prevent crash on API failure (#25933)
This commit is contained in:
parent
3e3c5b6d78
commit
9c6c375dfe
1 changed files with 4 additions and 0 deletions
|
|
@ -219,6 +219,10 @@
|
|||
config = res;
|
||||
}
|
||||
|
||||
if (!config) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (config.ENABLE_IMAGE_GENERATION) {
|
||||
getModels();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue