mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(editor): Send template id as a number in telemetry events (#8484)
This commit is contained in:
parent
5cb55270b7
commit
327cc8df73
|
@ -1094,7 +1094,7 @@ export const workflowHelpers = defineComponent({
|
|||
const templateId = this.$route.query.templateId;
|
||||
if (templateId) {
|
||||
this.$telemetry.track('User saved new workflow from template', {
|
||||
template_id: templateId,
|
||||
template_id: isNaN(+templateId) ? templateId : +templateId,
|
||||
workflow_id: workflowData.id,
|
||||
wf_template_repo_session_id: this.templatesStore.previousSessionId,
|
||||
});
|
||||
|
|
|
@ -207,7 +207,7 @@ export const useSetupTemplateStore = defineStore('setupTemplate', () => {
|
|||
);
|
||||
|
||||
telemetry.track('User saved new workflow from template', {
|
||||
template_id: templateId.value,
|
||||
template_id: isNaN(+templateId.value) ? templateId : +templateId.value,
|
||||
workflow_id: createdWorkflow.id,
|
||||
wf_template_repo_session_id: templatesStore.currentSessionId,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue