mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix: Stop n8n from complaining about credentials when saving a new workflow form a template (#6671)
This commit is contained in:
parent
2af1c24ead
commit
486d16bcdb
|
@ -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 } });
|
||||
|
||||
|
|
Loading…
Reference in a new issue