Skip to content

Commit

Permalink
fix: use the new visualizations api (#591)
Browse files Browse the repository at this point in the history
This updates the Dashboards' API requests to use the new visualizations endpoint instead of the old reportTables and charts.

* Fixes an issue with Gauge legends not displaying properly (caused by a missing prop on the old endpoint)
  • Loading branch information
martinkrulltott authored Mar 3, 2020
1 parent 6119bf2 commit a89c1cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/itemTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export const itemTypeMap = {
},
[REPORT_TABLE]: {
id: REPORT_TABLE,
endPointName: 'reportTables',
propName: 'reportTable',
endPointName: 'visualizations',
propName: 'visualization',
pluralTitle: i18n.t('Pivot tables'),
domainType: DOMAIN_TYPE_AGGREGATE,
isVisualizationType: true,
Expand All @@ -70,8 +70,8 @@ export const itemTypeMap = {
},
[CHART]: {
id: CHART,
endPointName: 'charts',
propName: 'chart',
endPointName: 'visualizations',
propName: 'visualization',
pluralTitle: i18n.t('Charts'),
domainType: DOMAIN_TYPE_AGGREGATE,
isVisualizationType: true,
Expand Down

0 comments on commit a89c1cb

Please sign in to comment.