fix(images): add null guard for config in onMount to prevent crash on API failure (#25933)

This commit is contained in:
G30 2026-06-16 18:28:42 -04:00 committed by GitHub
parent 3e3c5b6d78
commit 9c6c375dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,6 +219,10 @@
config = res;
}
if (!config) {
return;
}
if (config.ENABLE_IMAGE_GENERATION) {
getModels();
}