Fix OpenCode models/fallback chain not loading on admin page initial load

This commit is contained in:
southseact-3d
2026-02-19 13:56:03 +00:00
parent f5fee2ac4d
commit bf8747e4dc

View File

@@ -2330,7 +2330,7 @@
const loaders = [ const loaders = [
() => ((el.availableModels || el.planPriorityList) ? loadAvailable() : null), () => ((el.availableModels || el.planPriorityList) ? loadAvailable() : null),
() => ((el.iconSelect || el.iconList) ? loadIcons() : null), () => ((el.iconSelect || el.iconList) ? loadIcons() : null),
() => (el.configuredList ? loadConfigured() : null), () => ((el.opencodeModelsList || el.publicModelsList) ? loadConfigured() : null),
() => (el.orForm ? loadOpenRouterSettings() : null), () => (el.orForm ? loadOpenRouterSettings() : null),
() => (el.mistralForm ? loadMistralSettings() : null), () => (el.mistralForm ? loadMistralSettings() : null),
() => ((el.autoModelForm || el.planProviderForm || el.planPriorityList) ? loadPlanProviderSettings() : null), () => ((el.autoModelForm || el.planProviderForm || el.planPriorityList) ? loadPlanProviderSettings() : null),