In Workflow Settings, disable the "Generate Code" toggle, and always set it to true. (#3471)
This commit is contained in:
@@ -72,7 +72,7 @@ function StartNode({ id, data }: NodeProps<StartNode>) {
|
|||||||
? data.maxScreenshotScrolls
|
? data.maxScreenshotScrolls
|
||||||
: null,
|
: null,
|
||||||
extraHttpHeaders: data.withWorkflowSettings ? data.extraHttpHeaders : null,
|
extraHttpHeaders: data.withWorkflowSettings ? data.extraHttpHeaders : null,
|
||||||
useScriptCache: data.withWorkflowSettings ? data.useScriptCache : false,
|
useScriptCache: data.withWorkflowSettings ? data.useScriptCache : true, // TODO(jdo/always-generate): set to false
|
||||||
scriptCacheKey: data.withWorkflowSettings ? data.scriptCacheKey : null,
|
scriptCacheKey: data.withWorkflowSettings ? data.scriptCacheKey : null,
|
||||||
aiFallback: data.withWorkflowSettings ? data.aiFallback : true,
|
aiFallback: data.withWorkflowSettings ? data.aiFallback : true,
|
||||||
runSequentially: data.withWorkflowSettings ? data.runSequentially : false,
|
runSequentially: data.withWorkflowSettings ? data.runSequentially : false,
|
||||||
@@ -211,11 +211,14 @@ function StartNode({ id, data }: NodeProps<StartNode>) {
|
|||||||
<Label>Generate Code</Label>
|
<Label>Generate Code</Label>
|
||||||
<HelpTooltip content="Generate & use cached code for faster execution." />
|
<HelpTooltip content="Generate & use cached code for faster execution." />
|
||||||
<Switch
|
<Switch
|
||||||
|
disabled={true} // TODO(jdo/always-generate): remove
|
||||||
className="ml-auto"
|
className="ml-auto"
|
||||||
checked={inputs.useScriptCache}
|
checked={true} // TODO(jdo/always-generate): set to `inputs.useScriptCache`
|
||||||
onCheckedChange={(value) => {
|
onCheckedChange={
|
||||||
handleChange("useScriptCache", value);
|
(/*value*/) => {
|
||||||
}}
|
// handleChange("useScriptCache", value); // TODO(jdo/always-generate): put back
|
||||||
|
}
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user