Skip to content

Commit

Permalink
fix: use correct eventType when reporting dataStatistics on views
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Feb 17, 2025
1 parent 1f327c3 commit 315c6cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/itemTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const itemTypeMap = {
[REPORT_TABLE]: {
id: REPORT_TABLE,
endPointName: 'visualizations',
dataStatisticsName: 'REPORT_TABLE_VIEW',
dataStatisticsName: 'VISUALIZATION_VIEW',
propName: 'visualization',
pluralTitle: i18n.t('Pivot tables'),
domainType: DOMAIN_TYPE_AGGREGATE,
Expand All @@ -86,7 +86,7 @@ export const itemTypeMap = {
id: CHART,
endPointName: 'visualizations',
propName: 'visualization',
dataStatisticsName: 'CHART_VIEW',
dataStatisticsName: 'VISUALIZATION_VIEW',
pluralTitle: i18n.t('Charts'),
domainType: DOMAIN_TYPE_AGGREGATE,
isVisualizationType: true,
Expand All @@ -107,6 +107,7 @@ export const itemTypeMap = {
[EVENT_REPORT]: {
id: EVENT_REPORT,
endPointName: 'eventReports',
dataStatisticsName: 'EVENT_REPORT_VIEW',
propName: 'eventReport',
pluralTitle: i18n.t('Event reports'),
domainType: DOMAIN_TYPE_TRACKER,
Expand All @@ -117,6 +118,7 @@ export const itemTypeMap = {
[EVENT_CHART]: {
id: EVENT_CHART,
endPointName: 'eventCharts',
dataStatisticsName: 'EVENT_CHART_VIEW',
propName: 'eventChart',
pluralTitle: i18n.t('Event charts'),
domainType: DOMAIN_TYPE_TRACKER,
Expand All @@ -127,6 +129,7 @@ export const itemTypeMap = {
[EVENT_VISUALIZATION]: {
id: EVENT_VISUALIZATION,
endPointName: 'eventVisualizations',
dataStatisticsName: 'EVENT_VISUALIZATION_VIEW',
propName: 'eventVisualization',
pluralTitle: i18n.t('Line lists'),
domainType: DOMAIN_TYPE_TRACKER,
Expand Down

0 comments on commit 315c6cb

Please sign in to comment.