Skip to content

Commit

Permalink
fix selection problem by reading check group from availableData
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingjie-ZhangOA committed Jan 2, 2024
1 parent fc8e843 commit eea675b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reporting-grofwild/R/app_dashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ dashboardChoicesServer <- function(id, choices, uiText, regionLevel) {

previousSelected <- input$indicators

choicesUpdate <- if(regionLevel() %in% c("flanders", "provinces")) choices else setdiff(choices, "F18_8")
## this is done in "availableData"
#choicesUpdate <- if(isolate(regionLevel()) %in% c("flanders", "provinces")) choices else setdiff(choices, "F18_8")

updateCheckboxGroupInput(session = session, inputId = "indicators",
choices = namedChoices(choicesUpdate, uiText = uiText, regionLevel = regionLevel()),
choices = namedChoices( choices , uiText = uiText, regionLevel = regionLevel()),
selected = previousSelected)

})
Expand Down

0 comments on commit eea675b

Please sign in to comment.