fix: empty inputs causing run issues
This commit is contained in:
		
							parent
							
								
									c843926d6e
								
							
						
					
					
						commit
						810aec5135
					
				@ -118,7 +118,7 @@ def apply_inputs_to_workflow(workflow_api: Any, inputs: Any, sid: str = None):
 | 
				
			|||||||
                if (value["class_type"] == "ComfyDeployWebscoketImageInput"):
 | 
					                if (value["class_type"] == "ComfyDeployWebscoketImageInput"):
 | 
				
			||||||
                    value['inputs']["client_id"] = sid
 | 
					                    value['inputs']["client_id"] = sid
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
            if "input_id" in value['inputs'] and value['inputs']['input_id'] in inputs:
 | 
					            if "input_id" in value['inputs'] and inputs is not None and value['inputs']['input_id'] in inputs:
 | 
				
			||||||
                new_value = inputs[value['inputs']['input_id']]
 | 
					                new_value = inputs[value['inputs']['input_id']]
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                # Lets skip it if its an image
 | 
					                # Lets skip it if its an image
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user