Skip to content

Commit

Permalink
fix: do not run default adapter for pivot tables (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenrikoverland committed Feb 3, 2020
1 parent c91ed3b commit 27d8ab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/app/src/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
VIS_TYPE_PIE,
VIS_TYPE_GAUGE,
VIS_TYPE_SINGLE_VALUE,
VIS_TYPE_PIVOT_TABLE,
defaultVisType,
isYearOverYear,
} from '@dhis2/analytics'
Expand Down Expand Up @@ -89,6 +90,8 @@ export const getAdaptedUiByType = ui => {
case VIS_TYPE_GAUGE: {
return singleValueUiAdapter(ui)
}
case VIS_TYPE_PIVOT_TABLE:
return ui
default:
return defaultUiAdapter(ui)
}
Expand Down

0 comments on commit 27d8ab7

Please sign in to comment.