fix(editor): Send template id as a number in telemetry events (#8484)
This commit is contained in:
committed by
GitHub
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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user