Skip to content

Commit

Permalink
fix / ctrl if synthetic results are available
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Thieurmel committed Sep 29, 2021
1 parent 90e0a96 commit cab66ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inst/application/src/server/01_set_read_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,12 @@ observe({
updateCheckboxInput(session, "read_hydroStorage", antaresViz:::.getLabelLanguage("hydroStorage", current_language), FALSE)
} else {
sel <- isolate({input$read_type_mcYears})
choices <- c("synthetic", "all", "custom")
if(opts$synthesis){
choices <- c("synthetic", "all", "custom")
} else {
choices <- c("all", "custom")
if(!sel %in% choices) sel <- "all"
}
names(choices) <- sapply(choices, function(x){
antaresViz:::.getLabelLanguage(x, current_language)
})
Expand Down

0 comments on commit cab66ac

Please sign in to comment.