Add query param for templates (#2293)

This commit is contained in:
Mutasem Aldmour 2021-10-07 21:54:22 +02:00 committed by GitHub
parent 1d90cd3b09
commit 857426a918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -457,7 +457,7 @@ export default mixins(
}
this.blankRedirect = true;
this.$router.push({ name: 'NodeViewNew' });
this.$router.push({ name: 'NodeViewNew', query: { templateId } });
await this.addNodes(data.workflow.nodes, data.workflow.connections);
await this.$store.dispatch('workflows/setNewWorkflowName', data.name);