mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
Still load workflow even validation fails (#453)
This commit is contained in:
@@ -2188,8 +2188,14 @@ export class ComfyApp {
|
||||
this.vueAppReady &&
|
||||
useSettingStore().get('Comfy.Validation.Workflows')
|
||||
) {
|
||||
graphData = await validateComfyWorkflow(graphData, /* onError=*/ alert)
|
||||
if (!graphData) return
|
||||
// TODO: Show validation error in a dialog.
|
||||
const validatedGraphData = await validateComfyWorkflow(
|
||||
graphData,
|
||||
/* onError=*/ alert
|
||||
)
|
||||
// If the validation failed, use the original graph data.
|
||||
// Ideally we should not block users from loading the workflow.
|
||||
graphData = validatedGraphData ?? graphData
|
||||
}
|
||||
|
||||
const missingNodeTypes = []
|
||||
|
||||
Reference in New Issue
Block a user