fix(create run): ComfyUIDeployExternalText default value overwriting
This commit is contained in:
		
							parent
							
								
									08fe87c8af
								
							
						
					
					
						commit
						97bb2b69c5
					
				@ -90,12 +90,12 @@ export const createRun = withServerPromise(
 | 
			
		||||
        Object.entries(workflow_api).forEach(([_, node]) => {
 | 
			
		||||
          if (node.inputs["input_id"] === key) {
 | 
			
		||||
            node.inputs["input_id"] = inputs[key];
 | 
			
		||||
            // Fix for external text default value
 | 
			
		||||
            if (node.class_type == "ComfyUIDeployExternalText") {
 | 
			
		||||
              node.inputs["default_value"] = inputs[key];
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          // Fix for external text default value
 | 
			
		||||
          if (node.class_type == "ComfyUIDeployExternalText") {
 | 
			
		||||
            node.inputs["default_value"] = inputs[key];
 | 
			
		||||
          }
 | 
			
		||||
        });
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user