From 327cc8df7343b806bee87faaa86ed22d9d70127f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Tue, 30 Jan 2024 10:37:06 +0100 Subject: [PATCH] fix(editor): Send template id as a number in telemetry events (#8484) --- packages/editor-ui/src/mixins/workflowHelpers.ts | 2 +- .../views/SetupWorkflowFromTemplateView/setupTemplate.store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/mixins/workflowHelpers.ts b/packages/editor-ui/src/mixins/workflowHelpers.ts index 6ea920f4ef..30bf531665 100644 --- a/packages/editor-ui/src/mixins/workflowHelpers.ts +++ b/packages/editor-ui/src/mixins/workflowHelpers.ts @@ -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, }); diff --git a/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/setupTemplate.store.ts b/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/setupTemplate.store.ts index b0b1715792..e75eb8e611 100644 --- a/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/setupTemplate.store.ts +++ b/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/setupTemplate.store.ts @@ -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, });