fix: graph load
This commit is contained in:
		
							parent
							
								
									69f63f4869
								
							
						
					
					
						commit
						e2fcf67aec
					
				@ -313,6 +313,14 @@ const ext = {
 | 
				
			|||||||
          // This part of the code would depend on how the ComfyUI expects to receive and process the workflow data
 | 
					          // This part of the code would depend on how the ComfyUI expects to receive and process the workflow data
 | 
				
			||||||
          // For demonstration, let's assume there's a loadWorkflow method in the ComfyUI API
 | 
					          // For demonstration, let's assume there's a loadWorkflow method in the ComfyUI API
 | 
				
			||||||
          if (comfyUIWorkflow && app && app.loadGraphData) {
 | 
					          if (comfyUIWorkflow && app && app.loadGraphData) {
 | 
				
			||||||
 | 
					            try {
 | 
				
			||||||
 | 
					              await window["app"].ui.settings.setSettingValueAsync(
 | 
				
			||||||
 | 
					                "Comfy.Validation.Workflows",
 | 
				
			||||||
 | 
					                false,
 | 
				
			||||||
 | 
					              );
 | 
				
			||||||
 | 
					            } catch (error) {
 | 
				
			||||||
 | 
					              console.warning("Error setting validation to false, is fine to ignore this", error);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            console.log("loadGraphData");
 | 
					            console.log("loadGraphData");
 | 
				
			||||||
            app.loadGraphData(comfyUIWorkflow);
 | 
					            app.loadGraphData(comfyUIWorkflow);
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user