make missing script key value 'default' (#3278)
This commit is contained in:
@@ -100,6 +100,10 @@ const useWorkflowSave = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const scriptCacheKey = saveData.settings.scriptCacheKey ?? "";
|
||||
const normalizedKey =
|
||||
scriptCacheKey === "" ? "default" : saveData.settings.scriptCacheKey;
|
||||
|
||||
const requestBody: WorkflowCreateYAMLRequest = {
|
||||
title: saveData.title,
|
||||
description: saveData.workflow.description,
|
||||
@@ -111,7 +115,7 @@ const useWorkflowSave = () => {
|
||||
totp_verification_url: saveData.workflow.totp_verification_url,
|
||||
extra_http_headers: extraHttpHeaders,
|
||||
generate_script: saveData.settings.useScriptCache,
|
||||
cache_key: saveData.settings.scriptCacheKey,
|
||||
cache_key: normalizedKey,
|
||||
workflow_definition: {
|
||||
parameters: saveData.parameters,
|
||||
blocks: saveData.blocks,
|
||||
|
||||
Reference in New Issue
Block a user