Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 3e72305

Browse files
committed
SORMAS-Foundation#3349: read value of the "diagramType" column in the database to decide which diagramtype to display
1 parent 2022f6b commit 3e72305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/dashboard/campaigns/CampaignDashboardDiagramComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public CampaignDashboardDiagramComponent(
6565
totalValuesWithoutStacks = true;
6666
}
6767

68-
showAsColumnChart = DiagramType.values().length > 0 && DiagramType.COLUMN == DiagramType.values()[0];
68+
showAsColumnChart = DiagramType.COLUMN == diagramDefinition.getDiagramType();
6969
campaignColumnChart = new HighChart();
7070

7171
setSizeFull();

0 commit comments

Comments
 (0)