fix: Fix node_type property in all events (#3759)

This commit is contained in:
Ahsan Virani 2022-07-24 17:37:34 +02:00 committed by GitHub
parent 57afd480ab
commit 1f1a63c39a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -184,7 +184,7 @@ export default mixins(
}
if (!this.hasPinData || shouldUnpinAndExecute) {
this.$telemetry.track('User clicked execute node button', { node_type: this.nodeName, workflow_id: this.$store.getters.workflowId, source: this.telemetrySource });
this.$telemetry.track('User clicked execute node button', { node_type: this.nodeType ? this.nodeType.name : null, workflow_id: this.$store.getters.workflowId, source: this.telemetrySource });
this.runWorkflow(this.nodeName, 'RunData.ExecuteNodeButton');
this.$emit('execute');
}

View file

@ -409,7 +409,8 @@ export default mixins(
},
methods: {
onRunNode(nodeName: string, source: string) {
this.$telemetry.track('User clicked execute node button', { node_type: nodeName, workflow_id: this.$store.getters.workflowId, source: 'canvas' });
const node = this.$store.getters.getNodeByName(nodeName);
this.$telemetry.track('User clicked execute node button', { node_type: node ? node.type : null, workflow_id: this.$store.getters.workflowId, source: 'canvas' });
this.runWorkflow(nodeName, source);
},
onRunWorkflow() {