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

This commit is contained in:
G30 authored and GitHub committed 2026-06-17 00:28:42 +02:00
1 parent 3e3c5b6d78
commit 9c6c375dfe
1 file changed
+4
@@ -219,6 +219,10 @@
config = res;
}
if (!config) {
return;
}
if (config.ENABLE_IMAGE_GENERATION) {
getModels();
}