Fix statistics

This commit is contained in:
Pieter Vander Vennet 2022-08-24 16:02:16 +02:00
parent 25ec71aff1
commit 3aeeb3ad87
5 changed files with 45 additions and 11 deletions

View file

@ -41,9 +41,7 @@ class Init {
window.mapcomplete_state = State.state;
const mode = QueryParameters.GetQueryParameter("mode", "map", "The mode the application starts in, e.g. 'map', 'dashboard' or 'statistics'")
if (mode.data === "statistics") {
new StatisticsGUI().AttachTo("leafletDiv")
} else if (mode.data === "dashboard") {
if (mode.data === "dashboard") {
new DashboardGui(State.state, guiState).setup()
} else {
new DefaultGUI(State.state, guiState).setup()