fix(editor): Remove template creds setup from workflow when copied (no-changelog) (#9673)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user