mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix: Stop n8n from complaining about credentials when saving a new workflow form a template (#6671)
This commit is contained in:
@@ -866,6 +866,12 @@ export default defineComponent({
|
||||
|
||||
data.workflow.nodes = NodeViewUtils.getFixedNodesList(data.workflow.nodes) as INodeUi[];
|
||||
|
||||
data.workflow.nodes?.forEach((node) => {
|
||||
if (node.credentials) {
|
||||
delete node.credentials;
|
||||
}
|
||||
});
|
||||
|
||||
this.blankRedirect = true;
|
||||
void this.$router.replace({ name: VIEWS.NEW_WORKFLOW, query: { templateId } });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user