fix: update fallback behavior for loading core workflow templates to default to English

This commit is contained in:
Johnpaul
2025-09-13 00:33:17 +01:00
parent f0c8a6d1ac
commit 6844b77899
2 changed files with 135 additions and 59 deletions

View File

@@ -617,7 +617,7 @@ export class ComfyApi extends EventTarget {
console.warn(
`Localized templates for '${locale}' not found, falling back to English`
)
return this.getCoreWorkflowTemplates('en')
return this.getCoreWorkflowTemplates()
}
console.error('Error loading core workflow templates:', error)
return []