Skip to content

Commit 70fb36e

Browse files
committed
chore: use preset instead on template in ga event
1 parent cb3299a commit 70fb36e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/v2/values/chartValuesDiff/ChartValuesView.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,10 @@ export const ChartValuesSelector = ({
567567
`${option.value.id} ${option.value.kind}`
568568

569569
const handleChange: SelectPickerProps<ChartValuesType>['onChange'] = (selectedOption) => {
570+
const kind = selectedOption.value.kind
570571
handleAnalyticsEvent({
571572
category: 'Chart Store',
572-
action: `CS_CHART_CONFIGURE_&_DEPLOY_${selectedOption.value.kind}_VALUE_SELECTED`,
573+
action: `CS_CHART_CONFIGURE_&_DEPLOY_${kind === 'TEMPLATE' ? 'PRESET' : kind}_VALUE_SELECTED`,
573574
})
574575
handleChartValuesSelection(selectedOption.value)
575576
}

0 commit comments

Comments
 (0)