fix(editor): Remove template creds setup from workflow when copied (no-changelog) (#9673)

This commit is contained in:
Tomi Turtiainen
2024-06-10 13:36:42 +03:00
committed by GitHub
parent b0b4093072
commit 1e15f73b0d
4 changed files with 7 additions and 4 deletions

View File

@@ -1997,12 +1997,14 @@ export default defineComponent({
void this.getNodesToSave(nodes).then((data) => {
const workflowToCopy: IWorkflowToShare = {
meta: {
...(this.workflowsStore.workflow.meta ?? {}),
...this.workflowsStore.workflow.meta,
instanceId: this.rootStore.instanceId,
},
...data,
};
delete workflowToCopy.meta.templateCredsSetupCompleted;
this.workflowHelpers.removeForeignCredentialsFromWorkflow(
workflowToCopy,
this.credentialsStore.allCredentials,