Allow skipping workflow validation (#355)

This commit is contained in:
Chenlei Hu
2024-08-10 09:49:12 -04:00
committed by GitHub
parent e1bc2708d3
commit d6c304690c
2 changed files with 15 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ import {
import { Vector2 } from '@comfyorg/litegraph'
import _ from 'lodash'
import { showLoadWorkflowWarning } from '@/services/dialogService'
import { useSettingStore } from '@/stores/settingStore'
export const ANIM_PREVIEW_WIDGET = '$$comfy_animation_preview'
@@ -2178,8 +2179,13 @@ export class ComfyApp {
console.error(error)
}
graphData = await validateComfyWorkflow(graphData, /* onError=*/ alert)
if (!graphData) return
if (
this.vueAppReady &&
useSettingStore().get<boolean>('Comfy.Validation.Workflows')
) {
graphData = await validateComfyWorkflow(graphData, /* onError=*/ alert)
if (!graphData) return
}
const missingNodeTypes = []
await this.#invokeExtensionsAsync(